mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +00:00
D3D12: Use helper method for binding EFB render targets
This commit is contained in:
parent
984da2d624
commit
32599559db
7 changed files with 23 additions and 14 deletions
|
@ -280,7 +280,7 @@ Renderer::Renderer(void*& window_handle)
|
|||
D3D::current_command_list->RSSetViewports(1, &vp);
|
||||
|
||||
// Already transitioned to appropriate states a few lines up for the clears.
|
||||
D3D::current_command_list->OMSetRenderTargets(1, &FramebufferManager::GetEFBColorTexture()->GetRTV12(), FALSE, &FramebufferManager::GetEFBDepthTexture()->GetDSV12());
|
||||
FramebufferManager::RestoreEFBRenderTargets();
|
||||
|
||||
D3D::BeginFrame();
|
||||
}
|
||||
|
@ -589,7 +589,7 @@ void Renderer::ReinterpretPixelData(unsigned int convtype)
|
|||
|
||||
FramebufferManager::GetEFBColorTexture()->TransitionToResourceState(D3D::current_command_list, D3D12_RESOURCE_STATE_RENDER_TARGET);
|
||||
FramebufferManager::GetEFBDepthTexture()->TransitionToResourceState(D3D::current_command_list, D3D12_RESOURCE_STATE_DEPTH_WRITE );
|
||||
D3D::current_command_list->OMSetRenderTargets(1, &FramebufferManager::GetEFBColorTexture()->GetRTV12(), FALSE, &FramebufferManager::GetEFBDepthTexture()->GetDSV12());
|
||||
FramebufferManager::RestoreEFBRenderTargets();
|
||||
}
|
||||
|
||||
void Renderer::SetBlendMode(bool force_update)
|
||||
|
@ -1000,7 +1000,7 @@ void Renderer::SwapImpl(u32 xfb_addr, u32 fb_width, u32 fb_stride, u32 fb_height
|
|||
|
||||
FramebufferManager::GetEFBColorTexture()->TransitionToResourceState(D3D::current_command_list, D3D12_RESOURCE_STATE_RENDER_TARGET);
|
||||
FramebufferManager::GetEFBDepthTexture()->TransitionToResourceState(D3D::current_command_list, D3D12_RESOURCE_STATE_DEPTH_WRITE );
|
||||
D3D::current_command_list->OMSetRenderTargets(1, &FramebufferManager::GetEFBColorTexture()->GetRTV12(), FALSE, &FramebufferManager::GetEFBDepthTexture()->GetDSV12());
|
||||
FramebufferManager::RestoreEFBRenderTargets();
|
||||
|
||||
SetViewport();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue