Skip to content

Commit 519e866

Browse files
authored
Enable friendly-name option for SPIRV dump and validation (#6465)
1 parent f7b9745 commit 519e866

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/slang-glslang/slang-glslang.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ extern "C"
175175

176176
spvtools::ValidatorOptions options;
177177
options.SetScalarBlockLayout(true);
178+
options.SetFriendlyNames(true);
178179

179180
spvtools::SpirvTools tools(target_env);
180181
tools.SetMessageConsumer(validationMessageConsumer);
@@ -197,6 +198,7 @@ extern "C"
197198
options |= SPV_BINARY_TO_TEXT_OPTION_COMMENT;
198199
options |= SPV_BINARY_TO_TEXT_OPTION_PRINT;
199200
options |= SPV_BINARY_TO_TEXT_OPTION_COLOR;
201+
options |= SPV_BINARY_TO_TEXT_OPTION_FRIENDLY_NAMES;
200202

201203
spv_diagnostic diagnostic = nullptr;
202204
spv_context context = spvContextCreate(kDefaultEnvironment);

0 commit comments

Comments
 (0)