mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Avoid hardcoding the size of the operands array.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
897ba6a3c7
commit
98cfd7b09f
@@ -323,11 +323,13 @@ enum hlsl_ir_expr_op
|
||||
HLSL_OP3_LERP,
|
||||
};
|
||||
|
||||
#define HLSL_MAX_OPERANDS 3
|
||||
|
||||
struct hlsl_ir_expr
|
||||
{
|
||||
struct hlsl_ir_node node;
|
||||
enum hlsl_ir_expr_op op;
|
||||
struct hlsl_src operands[3];
|
||||
struct hlsl_src operands[HLSL_MAX_OPERANDS];
|
||||
};
|
||||
|
||||
enum hlsl_ir_jump_type
|
||||
|
||||
Reference in New Issue
Block a user