yuzu-emu
/
yuzu
Archived
1
0
Fork 0

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

vk_shader_decompiler: Show comments as OpUndef with a type
This commit is contained in:
bunnei 2021-01-20 21:33:42 -08:00 committed by GitHub
commit ffbde909c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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 {};
}