mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d-shader/hlsl: Make HLSL_TYPE_STRING into a separate class.
This commit is contained in:
committed by
Alexandre Julliard
parent
cdcf2da2eb
commit
f57db442b0
Notes:
Alexandre Julliard
2024-04-19 22:26:17 +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/781
@@ -437,6 +437,7 @@ static uint32_t write_fx_4_type(const struct hlsl_type *type, struct fx_write_co
|
||||
case HLSL_CLASS_ARRAY:
|
||||
vkd3d_unreachable();
|
||||
|
||||
case HLSL_CLASS_STRING:
|
||||
case HLSL_CLASS_VOID:
|
||||
FIXME("Writing type class %u is not implemented.\n", type->class);
|
||||
set_status(fx, VKD3D_ERROR_NOT_IMPLEMENTED);
|
||||
@@ -810,7 +811,6 @@ static bool is_type_supported_fx_2(struct hlsl_ctx *ctx, const struct hlsl_type
|
||||
break;
|
||||
|
||||
case HLSL_TYPE_SAMPLER:
|
||||
case HLSL_TYPE_STRING:
|
||||
case HLSL_TYPE_PIXELSHADER:
|
||||
case HLSL_TYPE_VERTEXSHADER:
|
||||
hlsl_fixme(ctx, loc, "Write fx 2.0 parameter object type %#x.", type->base_type);
|
||||
@@ -820,6 +820,10 @@ static bool is_type_supported_fx_2(struct hlsl_ctx *ctx, const struct hlsl_type
|
||||
return false;
|
||||
}
|
||||
|
||||
case HLSL_CLASS_STRING:
|
||||
hlsl_fixme(ctx, loc, "Write fx 2.0 parameter class %#x.", type->class);
|
||||
return false;
|
||||
|
||||
case HLSL_CLASS_VOID:
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user