mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-13 17:30:12 +00:00
Move hasQuadScope assert to the correct place (after workgroup check)
This commit is contained in:
1 parent
c14d404f2c
commit
823ab380c1
1 file changed
+3
-3
@@ -6658,12 +6658,12 @@ ShaderDebugTrace *VulkanReplay::DebugComputeCommon(ShaderStage stage, uint32_t e
|
||||
RDCASSERTNOTEQUAL(subgroupSize, 0);
|
||||
numThreads = RDCMAX(numThreads, subgroupSize);
|
||||
|
||||
if(hasQuadScope)
|
||||
RDCASSERT(numThreads >= 4);
|
||||
|
||||
if(hasWorkgroupScope)
|
||||
numThreads = RDCMAX(numThreads, threadDim[0] * threadDim[1] * threadDim[2]);
|
||||
|
||||
if(hasQuadScope)
|
||||
RDCASSERT(numThreads >= 4);
|
||||
|
||||
apiWrapper->global_builtins[ShaderBuiltin::NumSubgroups] =
|
||||
ShaderVariable(rdcstr(), winner->numSubgroups, 0U, 0U, 0U);
|
||||
|
||||
|
||||
Reference in new issue
Block a user