mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user