mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/tpf: Use 'movc' to implement ternary operator.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
committed by
Alexandre Julliard
parent
2fb0c2d187
commit
1002a6b357
Notes:
Alexandre Julliard
2023-09-07 23:01:33 +02: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/268
@@ -552,6 +552,9 @@ enum hlsl_ir_expr_op
|
||||
|
||||
HLSL_OP3_DP2ADD,
|
||||
HLSL_OP3_LERP,
|
||||
/* TERNARY is used specifically for ternary operator, and later lowered according to profile to e.g. MOVC. */
|
||||
HLSL_OP3_MOVC,
|
||||
HLSL_OP3_TERNARY,
|
||||
};
|
||||
|
||||
#define HLSL_MAX_OPERANDS 3
|
||||
|
Reference in New Issue
Block a user