Vulkan: Call setSourceFile in addition to addSourceText

This commit is contained in:
Pokechu22 2022-08-04 15:09:12 -07:00
parent ceae42b754
commit 20a2a2174d
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ CompileShaderToSPV(EShLanguage stage, APIType api_type,
if (g_ActiveConfig.bEnableValidationLayer)
{
// Attach the source code to the SPIR-V for tools like RenderDoc.
intermediate->setSourceFile(stage_filename);
intermediate->addSourceText(pass_source_code, pass_source_code_length);
options.generateDebugInfo = true;