On Wed Nov 16 19:20:40 2022 +0000, Zebediah Figura wrote:
I think that makes sense, at least. The native HLSL compiler actually emits that field on all parameters, it's just that only immconsts actually care (since we can infer it in every other case from the register type). FWIW, elsewhere in vkd3d-shader we call that "dimension".
Btw, I'm also using it to flag undefined constants, i.e. VKD3D_IMMCONST_UNDEF_SCALAR, to avoid adding a field which would need to be initialised everywhere.