summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-07-27 11:40:44 -0700
committerGitHub <noreply@github.com>2023-07-27 11:40:44 -0700
commitc1216cae34a5e8ef912091fcaaf25b6633ac1db6 (patch)
tree2418cabcc8178bccb2bf815b27f28ac1da1ba1b9 /source
parentba89fc84267bfd09f1c8abf10a5b85d09bbc79de (diff)
Include NonSemanticDebugInfo when calling glslang (#3030)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source')
-rw-r--r--source/slang-glslang/slang-glslang.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang-glslang/slang-glslang.cpp b/source/slang-glslang/slang-glslang.cpp
index 489294d99..ffe3161ea 100644
--- a/source/slang-glslang/slang-glslang.cpp
+++ b/source/slang-glslang/slang-glslang.cpp
@@ -633,6 +633,12 @@ static int glslang_compileGLSLToSPIRV(const glslang_CompileRequest_1_1& request)
if (debugLevel != SLANG_DEBUG_INFO_LEVEL_NONE)
{
spvOptions.generateDebugInfo = true;
+ spvOptions.emitNonSemanticShaderDebugInfo = true;
+ }
+
+ if (debugLevel == SLANG_DEBUG_INFO_LEVEL_MAXIMAL)
+ {
+ spvOptions.emitNonSemanticShaderDebugSource = true;
}
for(int stage = 0; stage < EShLangCount; ++stage)