Fix D3D12 compute bindgroups
This commit is contained in:
parent
27388434d6
commit
d2312e8138
|
@ -285,6 +285,7 @@ namespace backend { namespace d3d12 {
|
||||||
mCommands.NextCommand<BeginComputePassCmd>();
|
mCommands.NextCommand<BeginComputePassCmd>();
|
||||||
|
|
||||||
TransitionForPass(commandList, mPassResourceUsages[nextPassNumber]);
|
TransitionForPass(commandList, mPassResourceUsages[nextPassNumber]);
|
||||||
|
bindingTracker.SetInComputePass(true);
|
||||||
RecordComputePass(commandList, &bindingTracker);
|
RecordComputePass(commandList, &bindingTracker);
|
||||||
|
|
||||||
nextPassNumber++;
|
nextPassNumber++;
|
||||||
|
@ -295,6 +296,7 @@ namespace backend { namespace d3d12 {
|
||||||
mCommands.NextCommand<BeginRenderPassCmd>();
|
mCommands.NextCommand<BeginRenderPassCmd>();
|
||||||
|
|
||||||
TransitionForPass(commandList, mPassResourceUsages[nextPassNumber]);
|
TransitionForPass(commandList, mPassResourceUsages[nextPassNumber]);
|
||||||
|
bindingTracker.SetInComputePass(false);
|
||||||
RecordRenderPass(commandList, &bindingTracker,
|
RecordRenderPass(commandList, &bindingTracker,
|
||||||
ToBackend(beginRenderPassCmd->info.Get()));
|
ToBackend(beginRenderPassCmd->info.Get()));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue