summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D12
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-09-07 23:02:42 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-09-07 23:02:42 +0000
commitd2acce087786550f307f61ae9071a285f3e6fc96 (patch)
tree5cb1203c32baedd4890551c80e4771dcafb8d760 /Graphics/GraphicsEngineD3D12
parentRemoved no longer needed CommitShaderResources(nullptr) (diff)
downloadDiligentCore-d2acce087786550f307f61ae9071a285f3e6fc96.tar.gz
DiligentCore-d2acce087786550f307f61ae9071a285f3e6fc96.zip
Flushing barriers in DeviceContextD3D12Impl::GetD3D12CommandList and DeviceContextVkImpl::GetCommandBuffer
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
-rw-r--r--Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp
index 5217da9e..532032f4 100644
--- a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp
+++ b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp
@@ -2104,6 +2104,7 @@ void DeviceContextD3D12Impl::TransitionBufferState(IBuffer* pBuffer, D3D12_RESOU
ID3D12GraphicsCommandList* DeviceContextD3D12Impl::GetD3D12CommandList()
{
auto& CmdCtx = GetCmdContext();
+ CmdCtx.FlushResourceBarriers();
return CmdCtx.GetCommandList();
}