summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/slang-reflection-test/main.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/slang-reflection-test/main.cpp b/tools/slang-reflection-test/main.cpp
index 9568dc3fe..f604ca1aa 100644
--- a/tools/slang-reflection-test/main.cpp
+++ b/tools/slang-reflection-test/main.cpp
@@ -183,6 +183,21 @@ static void emitReflectionVarBindingInfoJSON(
{
write(writer,"\n]");
}
+
+ if (auto semanticName = var->getSemanticName())
+ {
+ write(writer, ",\n");
+ write(writer,"\"semanticName\": \"");
+ write(writer, semanticName);
+ write(writer, "\"");
+
+ if (auto semanticIndex = var->getSemanticIndex())
+ {
+ write(writer, ",\n");
+ write(writer,"\"semanticIndex\": ");
+ write(writer, semanticIndex);
+ }
+ }
}
static void emitReflectionNameInfoJSON(