Skip to content

Commit

Permalink
Vulkan: Call setSourceFile in addition to addSourceText
Browse files Browse the repository at this point in the history
  • Loading branch information
Pokechu22 committed Aug 4, 2022
1 parent ceae42b commit 20a2a21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/Core/VideoCommon/Spirv.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 20a2a21

Please sign in to comment.