Generate SPIR-V debug information
This will be behind an option later
This commit is contained in:
parent
4f6dbb8677
commit
50b6c33bbc
1 changed files with 3 additions and 0 deletions
|
@ -68,7 +68,10 @@ std::vector<uint32_t> compile_glsl_to_spv(const std::string_view source_string,
|
|||
|
||||
std::vector<unsigned int> SpirV;
|
||||
spv::SpvBuildLogger logger;
|
||||
|
||||
glslang::SpvOptions spvOptions;
|
||||
spvOptions.generateDebugInfo = true;
|
||||
|
||||
glslang::GlslangToSpv(*Program.getIntermediate(shader_language), SpirV, &logger, &spvOptions);
|
||||
|
||||
return SpirV;
|
||||
|
|
Reference in a new issue