We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e946e9a commit ddda909Copy full SHA for ddda909
1 file changed
renderdoc/driver/shaders/spirv/spirv_disassemble.cpp
@@ -1416,10 +1416,21 @@ struct SPVInstruction
1416
1417
#if USE_CANONICAL_EXT_INST_NAMES
1418
ret += op->arguments[0]->ext->setname + "::";
1419
- ret += op->arguments[0]->ext->canonicalNames[op->literals[0]];
+ const char **names = op->arguments[0]->ext->canonicalNames;
1420
#else
1421
- ret += op->arguments[0]->ext->friendlyNames[op->literals[0]];
+ const char **names = op->arguments[0]->ext->friendlyNames;
1422
#endif
1423
+ if(names)
1424
+ {
1425
+ ret += names[op->literals[0]];
1426
+ }
1427
+ else
1428
1429
+#if !USE_CANONICAL_EXT_INST_NAMES
1430
+ ret += op->arguments[0]->ext->setname + "::";
1431
+#endif
1432
+ ret += StringFormat::Fmt("op%u", op->literals[0]);
1433
1434
1435
ret += "(";
1436
0 commit comments