Zebediah Figura (@zfigura) commented about libs/vkd3d-shader/hlsl.c:
}
+enum hlsl_regset hlsl_type_get_regset(struct hlsl_ctx *ctx, const struct hlsl_type *type) +{
- unsigned int k;
- if (type->type == HLSL_CLASS_OBJECT)
- {
for (k = 0; k <= HLSL_REGSET_LAST_OBJECT; ++k)
{
if (type->reg_size[k] > 0)
return k;
}
vkd3d_unreachable();
- }
- return HLSL_REGSET_NUM;
What about structs and arrays?