From 20a2a2174df74a307e8bc4eed35e5923dfa70bbd Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Thu, 4 Aug 2022 15:09:12 -0700 Subject: [PATCH] Vulkan: Call setSourceFile in addition to addSourceText --- Source/Core/VideoCommon/Spirv.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/VideoCommon/Spirv.cpp b/Source/Core/VideoCommon/Spirv.cpp index 0fc22e1731..50c88c4faf 100644 --- a/Source/Core/VideoCommon/Spirv.cpp +++ b/Source/Core/VideoCommon/Spirv.cpp @@ -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;