Fix missing flag to indicate that indirect count buffer is unused

This commit is contained in:
baldurk
2024-12-05 13:31:23 +00:00
parent e2f67eb9f6
commit dcf9ef00dc
+3
View File
@@ -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);