21 Apr
2023
21 Apr
'23
4:07 a.m.
Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/hlsl.h:
- union hlsl_constant_value + struct hlsl_constant_value { - uint32_t u; - int32_t i; - float f; - double d; - } value[4]; + union hlsl_constant_value_component + { + uint32_t u; + int32_t i; + float f; + double d; + } u[4]; + } value; What's the advantage of that? I can't say I really like all the `.u` that you have to sprinkle throughout the code.
-- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/177#note_30841