summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Spirv.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2022-08-04 15:09:12 -0700
committerPokechu22 <Pokechu022@gmail.com>2022-08-04 15:09:12 -0700
commit20a2a2174df74a307e8bc4eed35e5923dfa70bbd (patch)
tree68d28476926d93768ccbac8164d60d43920446dc /Source/Core/VideoCommon/Spirv.cpp
parentceae42b754c479dd60461323afa5a8bc90a4dfc2 (diff)
Vulkan: Call setSourceFile in addition to addSourceText
Diffstat (limited to 'Source/Core/VideoCommon/Spirv.cpp')
-rw-r--r--Source/Core/VideoCommon/Spirv.cpp1
1 files changed, 1 insertions, 0 deletions
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;