mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-15 02:11:22 +00:00
Fix check for shader extensions on SM5.0, don't compare space
This commit is contained in:
1 file changed
+10
-4
@@ -545,12 +545,18 @@ bool Program::UsesExtensionUAV(uint32_t slot, uint32_t space, const byte *bytes,
|
||||
tokenStream++;
|
||||
}
|
||||
|
||||
uint32_t opspace = ~0U;
|
||||
if(sm51)
|
||||
opspace = tokenStream[0];
|
||||
{
|
||||
uint32_t opspace = tokenStream[0];
|
||||
|
||||
if(space == opspace && slot == opreg)
|
||||
return true;
|
||||
if(space == opspace && slot == opreg)
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(slot == opreg)
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user