From d2acce087786550f307f61ae9071a285f3e6fc96 Mon Sep 17 00:00:00 2001 From: assiduous Date: Mon, 7 Sep 2020 16:02:42 -0700 Subject: Flushing barriers in DeviceContextD3D12Impl::GetD3D12CommandList and DeviceContextVkImpl::GetCommandBuffer --- Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Graphics/GraphicsEngineD3D12') 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(); } -- cgit v1.2.3