mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Fix descriptor race against ongoing GPU work in test
This commit is contained in:
@@ -225,6 +225,7 @@ void miss(inout RayPayload payload)
|
||||
.InitialState(D3D12_RESOURCE_STATE_UNORDERED_ACCESS);
|
||||
|
||||
MakeUAV(uavtex).CreateCPU(1);
|
||||
MakeAS(asb).Offset(tlasOffset).CreateCPU(0);
|
||||
|
||||
while(Running())
|
||||
{
|
||||
@@ -286,7 +287,6 @@ void miss(inout RayPayload payload)
|
||||
desc.Inputs.InstanceDescs = instIndirectData->GetGPUVirtualAddress();
|
||||
|
||||
cmd4->BuildRaytracingAccelerationStructure(&desc, 0, NULL);
|
||||
MakeAS(asb).Offset(tlasOffset).CreateCPU(0);
|
||||
|
||||
ResourceBarrier(cmd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user