mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
Add ability to dump xfb copies to texture for debugging purposes
This commit is contained in:
parent
a9f0d1783b
commit
198d3b69b4
10 changed files with 35 additions and 37 deletions
|
@ -554,7 +554,7 @@ void Renderer::SwapImpl(AbstractTexture* texture, const EFBRectangle& rc, u64 ti
|
|||
|
||||
// Update the window size based on the frame that was just rendered.
|
||||
// Due to depending on guest state, we need to call this every frame.
|
||||
SetWindowSize(xfb_texture->config.width, xfb_texture->config.height);
|
||||
SetWindowSize(xfb_texture->GetConfig().width, xfb_texture->GetConfig().height);
|
||||
|
||||
// Clean up stale textures.
|
||||
TextureCache::GetInstance()->Cleanup(frameCount);
|
||||
|
@ -731,7 +731,7 @@ void Renderer::DrawScreen(VKTexture* xfb_texture)
|
|||
VK_SUBPASS_CONTENTS_INLINE);
|
||||
|
||||
// Draw
|
||||
TargetRectangle source_rc = xfb_texture->config.Rect();
|
||||
TargetRectangle source_rc = xfb_texture->GetConfig().GetRect();
|
||||
BlitScreen(m_swap_chain->GetRenderPass(), GetTargetRectangle(), source_rc, xfb_texture->GetRawTexIdentifier());
|
||||
|
||||
// Draw OSD
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue