summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
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)