Vulkan: Support frame dumping/screenshots

This commit is contained in:
Stenzek
2016-08-14 00:40:04 +10:00
parent 4a4f6cc135
commit f4944f006d
3 changed files with 210 additions and 0 deletions

View File

@ -63,6 +63,8 @@ public:
// Swaps EFB framebuffers, so re-bind afterwards.
void ReinterpretPixelData(int convtype);
// This render pass can be used for other readback operations.
VkRenderPass GetColorCopyForReadbackRenderPass() const { return m_copy_color_render_pass; }
// Resolve color/depth textures to a non-msaa texture, and return it.
Texture2D* ResolveEFBColorTexture(StateTracker* state_tracker, const VkRect2D& region);
Texture2D* ResolveEFBDepthTexture(StateTracker* state_tracker, const VkRect2D& region);