Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/hlsl.h:
/* Additional information if the type is HLSL_CLASS_STRUCT. */ struct {
/* Fields contained within the struct. */ struct hlsl_struct_field *fields;
/* Number of fields contained in the struct. */ size_t field_count; } record;
/* Additional information if the type is HLSL_CLASS_ARRAY. */ struct {
/* Type of the array elements. */ struct hlsl_type *type;
/* Number of elements contained within the array or HLSL_ARRAY_ELEMENTS_COUNT_IMPLICIT
* if it is unknown yet. */ unsigned int elements_count;
These seem obvious too, except for an indication that the indication that `HLSL_ARRAY_ELEMENTS_COUNT_IMPLICIT` is used when the element count is unknown.