Browse Source

Merge pull request #5361 from ReinUsesLisp/vk-shader-comment

vk_shader_decompiler: Show comments as OpUndef with a type
nce_cpp
bunnei 5 years ago
committed by GitHub
parent
commit
02dfcb4b8f
  1. 5
      src/video_core/renderer_vulkan/vk_shader_decompiler.cpp

5
src/video_core/renderer_vulkan/vk_shader_decompiler.cpp

@ -1334,7 +1334,10 @@ private:
} }
if (const auto comment = std::get_if<CommentNode>(&*node)) { 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 {}; return {};
} }

Loading…
Cancel
Save