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.