Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/hlsl.y:
field->type = type;
if (shader_is_sm_5_1(ctx) && type->class == HLSL_CLASS_OBJECT)
if (shader_is_sm_5_1(ctx) && hlsl_type_is_resource(type))
In light of 4577cefc9c3ed3f939a2db8b8e6d766687fa2b0e you might want to share the definition of `shader_is_sm_5_1()`. We have to different definitions which are slightly different, and on of those doesn't feel completely right.