summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-01-16 00:33:06 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2021-01-16 01:12:57 +0100
commitc3c7603076d71789b9268f456b31fac2da157b55 (patch)
treeb62f3854b64c00562e3be47bb2da458da4976a94 /src/video_core/renderer_vulkan
parentMerge pull request #5358 from ReinUsesLisp/rename-insert-padding (diff)
downloadyuzu-c3c7603076d71789b9268f456b31fac2da157b55.tar
yuzu-c3c7603076d71789b9268f456b31fac2da157b55.tar.gz
yuzu-c3c7603076d71789b9268f456b31fac2da157b55.tar.bz2
yuzu-c3c7603076d71789b9268f456b31fac2da157b55.tar.lz
yuzu-c3c7603076d71789b9268f456b31fac2da157b55.tar.xz
yuzu-c3c7603076d71789b9268f456b31fac2da157b55.tar.zst
yuzu-c3c7603076d71789b9268f456b31fac2da157b55.zip
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r--src/video_core/renderer_vulkan/vk_shader_decompiler.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp
index 89cbe01ad..61d52b961 100644
--- a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp
+++ b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp
@@ -1334,7 +1334,10 @@ private:
}
if (const auto comment = std::get_if<CommentNode>(&*node)) {
- Name(OpUndef(t_void), comment->GetText());
+ if (device.HasDebuggingToolAttached()) {
+ // We should insert comments with OpString instead of using named variables
+ Name(OpUndef(t_int), comment->GetText());
+ }
return {};
}