Merge pull request #10945 from Pokechu22/vulkan-source-file-name

Vulkan: Call setSourceFile in addition to addSourceText
This commit is contained in:
Tilka 2022-08-05 00:03:25 +01:00 committed by GitHub
commit e638bb658f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;