mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
vkd3d-shader/hlsl: Use elementwise_intrinsic_float_convert_args() in intrinsic_faceforward().
This commit is contained in:
parent
24e29649c4
commit
e7eadb38b8
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
@ -3880,9 +3880,9 @@ static bool intrinsic_faceforward(struct hlsl_ctx *ctx,
|
||||
" return dot(i, ng) < 0 ? n : -n;\n"
|
||||
"}\n";
|
||||
|
||||
if (!(type = elementwise_intrinsic_get_common_type(ctx, params, loc)))
|
||||
if (!elementwise_intrinsic_float_convert_args(ctx, params, loc))
|
||||
return false;
|
||||
type = hlsl_get_numeric_type(ctx, type->class, HLSL_TYPE_FLOAT, type->dimx, type->dimy);
|
||||
type = params->args[0]->data_type;
|
||||
|
||||
if (!(body = hlsl_sprintf_alloc(ctx, template,
|
||||
type->name, type->name, type->name, type->name)))
|
||||
|
Loading…
Reference in New Issue
Block a user