Merge pull request #31526 from Chaosus/shader_bug_vk2
[Vulkan] Fix ternary operator shader compiler expression
This commit is contained in:
commit
86d0d88b42
1 changed files with 2 additions and 0 deletions
|
@ -725,11 +725,13 @@ String ShaderCompilerRD::_dump_node_code(const SL::Node *p_node, int p_level, Ge
|
|||
} break;
|
||||
case SL::OP_SELECT_IF: {
|
||||
|
||||
code += "(";
|
||||
code += _dump_node_code(onode->arguments[0], p_level, r_gen_code, p_actions, p_default_actions, p_assigning);
|
||||
code += "?";
|
||||
code += _dump_node_code(onode->arguments[1], p_level, r_gen_code, p_actions, p_default_actions, p_assigning);
|
||||
code += ":";
|
||||
code += _dump_node_code(onode->arguments[2], p_level, r_gen_code, p_actions, p_default_actions, p_assigning);
|
||||
code += ")";
|
||||
|
||||
} break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue