mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-24 22:11:20 -08:00
Merge pull request #5361 from ReinUsesLisp/vk-shader-comment
vk_shader_decompiler: Show comments as OpUndef with a type
This commit is contained in:
commit
ffbde909c8
@ -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…
Reference in New Issue
Block a user