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