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