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:
Zebediah Figura
2021-09-27 20:51:44 -05:00
committed by Alexandre Julliard
parent 897ba6a3c7
commit 98cfd7b09f
3 changed files with 17 additions and 15 deletions

View File

@@ -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