[Vulkan] Fix ternary operator shader compiler expression
This commit is contained in:
parent
8cee7703a6
commit
47c0ef3308
|
@ -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 New Issue