summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D12
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-08-09 03:28:55 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-08-09 03:28:55 +0000
commit587d3bc9265c51d94ff832355089a91a96036f0e (patch)
tree4936723438799a5f788bd59f15bc2df8469bb8d5 /Graphics/GraphicsEngineD3D12
parentVk backend: improved handling of RESOURCE_STATE_RESOLVE_DEST attachment state (diff)
downloadDiligentCore-587d3bc9265c51d94ff832355089a91a96036f0e.tar.gz
DiligentCore-587d3bc9265c51d94ff832355089a91a96036f0e.zip
Implemented render pPass MS resolve test reference in D3D12
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
-rw-r--r--Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp18
1 files changed, 9 insertions, 9 deletions
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
{