diff options
| author | Yong He <yonghe@outlook.com> | 2023-07-27 11:40:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-27 11:40:44 -0700 |
| commit | c1216cae34a5e8ef912091fcaaf25b6633ac1db6 (patch) | |
| tree | 2418cabcc8178bccb2bf815b27f28ac1da1ba1b9 /source | |
| parent | ba89fc84267bfd09f1c8abf10a5b85d09bbc79de (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.cpp | 6 |
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) |
