From 587d3bc9265c51d94ff832355089a91a96036f0e Mon Sep 17 00:00:00 2001 From: assiduous Date: Sat, 8 Aug 2020 20:28:55 -0700 Subject: Implemented render pPass MS resolve test reference in D3D12 --- .../GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'Graphics/GraphicsEngineD3D12') diff --git a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp index 7750c4be..abc1d0dc 100644 --- a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp +++ b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp @@ -1134,17 +1134,17 @@ void DeviceContextD3D12Impl::CommitSubpassRenderTargets() ARI.SrcRect.bottom = MipProps.LogicalHeight; } - RPRT.EndingAccess.Type = D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_RESOLVE; - auto& ResolveInfo = RPRT.EndingAccess.Resolve; - ResolveInfo.pSrcResource = pSrcTexD3D12->GetD3D12Resource(); - ResolveInfo.pDstResource = pDstTexD3D12->GetD3D12Resource(); - ResolveInfo.SubresourceCount = SubresourceCount; + RPRT.EndingAccess.Type = D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_RESOLVE; + auto& ResolveParams = RPRT.EndingAccess.Resolve; + ResolveParams.pSrcResource = pSrcTexD3D12->GetD3D12Resource(); + ResolveParams.pDstResource = pDstTexD3D12->GetD3D12Resource(); + ResolveParams.SubresourceCount = SubresourceCount; // This pointer is directly referenced by the command list, and the memory for this array // must remain alive and intact until EndRenderPass is called. - ResolveInfo.pSubresourceParameters = m_AttachmentResolveInfo.data(); - ResolveInfo.Format = TexFormatToDXGI_Format(RTAttachmentDesc.Format); - ResolveInfo.ResolveMode = D3D12_RESOLVE_MODE_AVERAGE; - ResolveInfo.PreserveResolveSource = RTAttachmentDesc.StoreOp == ATTACHMENT_STORE_OP_STORE; + ResolveParams.pSubresourceParameters = m_AttachmentResolveInfo.data(); + ResolveParams.Format = TexFormatToDXGI_Format(RTAttachmentDesc.Format); + ResolveParams.ResolveMode = D3D12_RESOLVE_MODE_AVERAGE; + ResolveParams.PreserveResolveSource = RTAttachmentDesc.StoreOp == ATTACHMENT_STORE_OP_STORE; } else { -- cgit v1.2.3