mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-09 05:41:31 +00:00
added missing unwrap for src and dst resolve resources for depthstencil
Follow up for this issue which was partly fixed, but the same crash started appearing after using depth resolve inside renderpass: https://github.com/baldurk/renderdoc/issues/2622
This commit is contained in:
1 parent
392073abe6
commit
5773660e0a
1 file changed
+14
@@ -468,6 +468,20 @@ void WrappedID3D12GraphicsCommandList::BeginRenderPass(
|
||||
{
|
||||
unwrappedDSV = *pDepthStencil;
|
||||
unwrappedDSV.cpuDescriptor = Unwrap(unwrappedDSV.cpuDescriptor);
|
||||
if(unwrappedDSV.DepthEndingAccess.Type == D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_RESOLVE)
|
||||
{
|
||||
unwrappedDSV.DepthEndingAccess.Resolve.pSrcResource =
|
||||
Unwrap(unwrappedDSV.DepthEndingAccess.Resolve.pSrcResource);
|
||||
unwrappedDSV.DepthEndingAccess.Resolve.pDstResource =
|
||||
Unwrap(unwrappedDSV.DepthEndingAccess.Resolve.pDstResource);
|
||||
}
|
||||
if(unwrappedDSV.StencilEndingAccess.Type == D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_RESOLVE)
|
||||
{
|
||||
unwrappedDSV.StencilEndingAccess.Resolve.pSrcResource =
|
||||
Unwrap(unwrappedDSV.StencilEndingAccess.Resolve.pSrcResource);
|
||||
unwrappedDSV.StencilEndingAccess.Resolve.pDstResource =
|
||||
Unwrap(unwrappedDSV.StencilEndingAccess.Resolve.pDstResource);
|
||||
}
|
||||
}
|
||||
|
||||
SERIALISE_TIME_CALL(m_pList4->BeginRenderPass(NumRenderTargets, unwrappedRTs,
|
||||
|
||||
Reference in new issue
Block a user