From d2312e81387157b55a57fc6a8bc2fd9ad424cb3d Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Fri, 13 Jul 2018 16:58:19 +0200 Subject: [PATCH] Fix D3D12 compute bindgroups --- src/backend/d3d12/CommandBufferD3D12.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/d3d12/CommandBufferD3D12.cpp b/src/backend/d3d12/CommandBufferD3D12.cpp index a2ade35ae9..7c1dd78d84 100644 --- a/src/backend/d3d12/CommandBufferD3D12.cpp +++ b/src/backend/d3d12/CommandBufferD3D12.cpp @@ -285,6 +285,7 @@ namespace backend { namespace d3d12 { mCommands.NextCommand(); TransitionForPass(commandList, mPassResourceUsages[nextPassNumber]); + bindingTracker.SetInComputePass(true); RecordComputePass(commandList, &bindingTracker); nextPassNumber++; @@ -295,6 +296,7 @@ namespace backend { namespace d3d12 { mCommands.NextCommand(); TransitionForPass(commandList, mPassResourceUsages[nextPassNumber]); + bindingTracker.SetInComputePass(false); RecordRenderPass(commandList, &bindingTracker, ToBackend(beginRenderPassCmd->info.Get()));