mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-01 01:55:39 +00:00
Check for invalid dispatches (usually indirect) in D3D12 mesh viewer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user