vkd3d-shader/hlsl: Make HLSL_TYPE_PASS into a separate class.

This commit is contained in:
Zebediah Figura
2024-02-06 17:08:01 -06:00
committed by Alexandre Julliard
parent 24d3a352a6
commit 3c8c7426df
Notes: Alexandre Julliard 2024-04-23 22:58:08 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/811
6 changed files with 13 additions and 2 deletions

View File

@@ -438,6 +438,7 @@ static uint32_t write_fx_4_type(const struct hlsl_type *type, struct fx_write_co
case HLSL_CLASS_ARRAY:
case HLSL_CLASS_EFFECT_GROUP:
case HLSL_CLASS_PASS:
vkd3d_unreachable();
case HLSL_CLASS_SAMPLER:
@@ -837,6 +838,7 @@ static bool is_type_supported_fx_2(struct hlsl_ctx *ctx, const struct hlsl_type
return false;
case HLSL_CLASS_EFFECT_GROUP:
case HLSL_CLASS_PASS:
/* This cannot appear as an extern variable. */
break;
}