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 committed Jan 25, 2024
1 parent 9bd299b commit 3e04b40
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 3e04b40

Please sign in to comment.