mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-03 21:30:59 +00:00
Fix missing flag to indicate that indirect count buffer is unused
This commit is contained in:
@@ -1745,6 +1745,9 @@ PatchedRayDispatch D3D12RTManager::PatchIndirectRayDispatch(
|
||||
prepInfo.maxCommandCount = MaxCommandCount;
|
||||
prepInfo.scratchBuffer = scratchBuffer->Address();
|
||||
|
||||
if(pCountBuffer == NULL)
|
||||
prepInfo.maxCommandCount |= 0x80000000U;
|
||||
|
||||
// set up general patching data - lookup buffers and so on
|
||||
|
||||
unwrappedCmd->SetPipelineState(m_RayPatchingData.indirectPrepPipe);
|
||||
|
||||
Reference in New Issue
Block a user