summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-01-21 06:33:42 +0100
committerGitHub <noreply@github.com>2021-01-21 06:33:42 +0100
commitffbde909c86cef97a0c8352dece27a4980dedbc7 (patch)
treef3249eb4bca0aa9d85d1a1cfff6a700a8006e836 /src/video_core/renderer_vulkan
parentMerge pull request #5743 from german77/HandheldFix (diff)
parentvk_shader_decompiler: Show comments as OpUndef with a type (diff)
downloadyuzu-ffbde909c86cef97a0c8352dece27a4980dedbc7.tar
yuzu-ffbde909c86cef97a0c8352dece27a4980dedbc7.tar.gz
yuzu-ffbde909c86cef97a0c8352dece27a4980dedbc7.tar.bz2
yuzu-ffbde909c86cef97a0c8352dece27a4980dedbc7.tar.lz
yuzu-ffbde909c86cef97a0c8352dece27a4980dedbc7.tar.xz
yuzu-ffbde909c86cef97a0c8352dece27a4980dedbc7.tar.zst
yuzu-ffbde909c86cef97a0c8352dece27a4980dedbc7.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 {};
}