From c1216cae34a5e8ef912091fcaaf25b6633ac1db6 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 27 Jul 2023 11:40:44 -0700 Subject: Include NonSemanticDebugInfo when calling glslang (#3030) Co-authored-by: Yong He --- source/slang-glslang/slang-glslang.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source') 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) -- cgit v1.2.3