mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +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:
committed by
Baldur Karlsson
parent
392073abe6
commit
5773660e0a
@@ -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