Skip to content
Permalink
Browse files
Merge pull request #10945 from Pokechu22/vulkan-source-file-name
Vulkan: Call setSourceFile in addition to addSourceText
  • Loading branch information
Tilka committed Aug 4, 2022
2 parents 5508c52 + 20a2a21 commit e638bb6
Showing 1 changed file with 1 addition and 0 deletions.
@@ -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;

0 comments on commit e638bb6

Please sign in to comment.