Vulkan: Combine frame dumping and present into one command buffer.

Small optimization that should make things slightly more efficient when
frame dumping is enabled.
This commit is contained in:
Stenzek
2016-11-03 22:50:31 +11:00
parent 690a6deeb3
commit 9aed27cdcf
2 changed files with 35 additions and 13 deletions

View File

@ -109,6 +109,11 @@ private:
bool DrawScreenshot(const EFBRectangle& rc, u32 xfb_addr, const XFBSourceBase* const* xfb_sources,
u32 xfb_count, u32 fb_width, u32 fb_stride, u32 fb_height);
// Copies the screenshot readback texture to the frame dumping buffer.
// NOTE: This assumes that DrawScreenshot has been called prior, and the fence associated
// with the command buffer where the readback buffer was populated has been reached.
void DumpScreenshot(u64 ticks);
// Copies/scales an image to the currently-bound framebuffer.
void BlitScreen(VkRenderPass render_pass, const TargetRectangle& dst_rect,
const TargetRectangle& src_rect, const Texture2D* src_tex, bool linear_filter);