summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorJay Kwak <82421531+jkwak-work@users.noreply.github.com>2025-02-26 13:03:06 -0800
committerGitHub <noreply@github.com>2025-02-26 13:03:06 -0800
commit519e866ff44ec728f95c191fff8a200b66a5377e (patch)
treef36cbaed89fbc6fbf38d21a51f68d7c5bf27013c /source
parentf7b9745e46db6a7e55f6e0265493350d65ea4615 (diff)
Enable friendly-name option for SPIRV dump and validation (#6465)
Diffstat (limited to 'source')
-rw-r--r--source/slang-glslang/slang-glslang.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang-glslang/slang-glslang.cpp b/source/slang-glslang/slang-glslang.cpp
index ca45be05b..8d17afc79 100644
--- a/source/slang-glslang/slang-glslang.cpp
+++ b/source/slang-glslang/slang-glslang.cpp
@@ -175,6 +175,7 @@ extern "C"
spvtools::ValidatorOptions options;
options.SetScalarBlockLayout(true);
+ options.SetFriendlyNames(true);
spvtools::SpirvTools tools(target_env);
tools.SetMessageConsumer(validationMessageConsumer);
@@ -197,6 +198,7 @@ extern "C"
options |= SPV_BINARY_TO_TEXT_OPTION_COMMENT;
options |= SPV_BINARY_TO_TEXT_OPTION_PRINT;
options |= SPV_BINARY_TO_TEXT_OPTION_COLOR;
+ options |= SPV_BINARY_TO_TEXT_OPTION_FRIENDLY_NAMES;
spv_diagnostic diagnostic = nullptr;
spv_context context = spvContextCreate(kDefaultEnvironment);