Archived
1
Fork 0

Generate SPIR-V debug information

This will be behind an option later
This commit is contained in:
Joshua Goins 2022-02-18 14:38:08 -05:00
parent 4f6dbb8677
commit 50b6c33bbc

View file

@ -68,7 +68,10 @@ std::vector<uint32_t> compile_glsl_to_spv(const std::string_view source_string,
std::vector<unsigned int> SpirV; std::vector<unsigned int> SpirV;
spv::SpvBuildLogger logger; spv::SpvBuildLogger logger;
glslang::SpvOptions spvOptions; glslang::SpvOptions spvOptions;
spvOptions.generateDebugInfo = true;
glslang::GlslangToSpv(*Program.getIntermediate(shader_language), SpirV, &logger, &spvOptions); glslang::GlslangToSpv(*Program.getIntermediate(shader_language), SpirV, &logger, &spvOptions);
return SpirV; return SpirV;