Check for invalid dispatches (usually indirect) in D3D12 mesh viewer

This commit is contained in:
baldurk
2026-02-02 12:00:24 +00:00
parent 6a791de9bd
commit fcc2c3c304
+6
View File
@@ -2165,6 +2165,12 @@ void D3D12Replay::InitPostMSBuffers(uint32_t eventId)
}
}
if(dispatchSize[0] > 65535 || dispatchSize[1] > 65535 || dispatchSize[2] > 65535)
{
ret.ampout.status = ret.meshout.status = "Invalid dispatch size";
return;
}
uint32_t totalNumMeshlets = dispatchSize[0] * dispatchSize[1] * dispatchSize[2];
// set defaults so that we don't try to fetch this output again if something goes wrong and the