[PATCH v7 4/5] vkd3d-shader/hlsl: Separate an add_ternary() helper.