Merge pull request #31526 from Chaosus/shader_bug_vk2

[Vulkan] Fix ternary operator shader compiler expression
This commit is contained in:
Rémi Verschelde 2019-08-21 11:54:37 +02:00 committed by GitHub
commit 86d0d88b42

View file

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