[PATCH v2 7/7] vkd3d-shader/hlsl: Avoid using HLSL_CLASS_OBJECT without checking the base type.