Skip to content

Commit

Permalink
Generate nonsemantic shader debug information
Browse files Browse the repository at this point in the history
  • Loading branch information
tksuoran authored and dneto0 committed Apr 10, 2024
1 parent 9a658e2 commit 8768d60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libshaderc_util/src/compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,10 @@ std::tuple<bool, std::vector<uint32_t>, size_t> Compiler::Compile(
options.generateDebugInfo = generate_debug_info_;
options.disableOptimizer = true;
options.optimizeSize = false;
if (generate_debug_info_) {
options.emitNonSemanticShaderDebugInfo = true;
options.emitNonSemanticShaderDebugSource = true;
}
// Note the call to GlslangToSpv also populates compilation_output_data.
glslang::GlslangToSpv(*program.getIntermediate(used_shader_stage), spirv,
&options);
Expand Down

0 comments on commit 8768d60

Please sign in to comment.