--
v2: vkd3d-shader/hlsl: Allow non-numeric types in the ternary operator.
vkd3d-shader/hlsl: Separate an add_ternary() helper.
tests: Add many more tests for ternary expressions.
vkd3d-shader/hlsl: Do not try to lower ternaries of types other than scalar or vector.
vkd3d-shader/hlsl: Remove a redundant definition of the "float" type.
https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/463
Makes sense. I'd mostly just advocate for documenting the answer in some form, even if that's "this function gives undefined results if dynamically indexed resource arrays are used". It's true that's not very useful to the consumer, though.
--
https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/466#note_52772