Vulkan: Transition EFB/XFB buffers before beginning swap render pass

Image layouts shouldn't be changed within a render pass.
This commit is contained in:
Stenzek
2017-06-10 23:28:03 +10:00
parent b841f796f9
commit 8bb6abacf8
2 changed files with 46 additions and 27 deletions

View File

@ -87,7 +87,10 @@ private:
bool CompileShaders();
void DestroyShaders();
void ResolveEFBForSwap(const TargetRectangle& scaled_rect);
// Transitions EFB/XFB buffers to SHADER_READ_ONLY, ready for presenting/dumping.
// If MSAA is enabled, and XFB is disabled, also resolves the EFB buffer.
void TransitionBuffersForSwap(const TargetRectangle& scaled_rect,
const XFBSourceBase* const* xfb_sources, u32 xfb_count);
// Draw either the EFB, or specified XFB sources to the currently-bound framebuffer.
void DrawFrame(VkRenderPass render_pass, const TargetRectangle& target_rect,