mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/hlsl: Use elementwise_intrinsic_float_convert_args() in write_atan_or_atan2().
This commit is contained in:
parent
6e6e2910d6
commit
7636f2a233
Notes:
Henri Verbeet
2024-09-11 15:34:20 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1042
@ -3309,9 +3309,9 @@ static bool write_atan_or_atan2(struct hlsl_ctx *ctx,
|
|||||||
" : poly_approx;\n"
|
" : poly_approx;\n"
|
||||||
"}";
|
"}";
|
||||||
|
|
||||||
if (!(type = elementwise_intrinsic_get_common_type(ctx, params, loc)))
|
if (!elementwise_intrinsic_float_convert_args(ctx, params, loc))
|
||||||
return false;
|
return false;
|
||||||
type = hlsl_get_numeric_type(ctx, type->class, HLSL_TYPE_FLOAT, type->dimx, type->dimy);
|
type = params->args[0]->data_type;
|
||||||
|
|
||||||
if (!(buf = hlsl_get_string_buffer(ctx)))
|
if (!(buf = hlsl_get_string_buffer(ctx)))
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user