mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/hlsl: Rename compatible_data_types() to be more specific.
This commit is contained in:
parent
6767b7abbf
commit
2a9b9f7530
Notes:
Alexandre Julliard
2023-02-20 22:45:40 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Zebediah Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/99
@ -217,7 +217,7 @@ static bool type_contains_only_numerics(struct hlsl_type *type)
|
||||
return type->type <= HLSL_CLASS_LAST_NUMERIC;
|
||||
}
|
||||
|
||||
static bool compatible_data_types(struct hlsl_ctx *ctx, struct hlsl_type *src, struct hlsl_type *dst)
|
||||
static bool explicit_compatible_data_types(struct hlsl_ctx *ctx, struct hlsl_type *src, struct hlsl_type *dst)
|
||||
{
|
||||
if (src->type <= HLSL_CLASS_LAST_NUMERIC && src->dimx == 1 && src->dimy == 1 && type_contains_only_numerics(dst))
|
||||
return true;
|
||||
@ -5240,7 +5240,7 @@ unary_expr:
|
||||
dst_type = hlsl_new_array_type(ctx, dst_type, $4.sizes[i]);
|
||||
}
|
||||
|
||||
if (!compatible_data_types(ctx, src_type, dst_type))
|
||||
if (!explicit_compatible_data_types(ctx, src_type, dst_type))
|
||||
{
|
||||
struct vkd3d_string_buffer *src_string, *dst_string;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user