glsl: Add a helper constructor for expressions that works out result type.
This doesn't cover all expressions or all operand types, but it will complain if you overreach and it allows for much greater slack on the programmer's part.
This commit is contained in:
@@ -842,12 +842,14 @@ public:
|
||||
* Constructor for unary operation expressions
|
||||
*/
|
||||
ir_expression(int op, const struct glsl_type *type, ir_rvalue *);
|
||||
ir_expression(int op, ir_rvalue *);
|
||||
|
||||
/**
|
||||
* Constructor for binary operation expressions
|
||||
*/
|
||||
ir_expression(int op, const struct glsl_type *type,
|
||||
ir_rvalue *, ir_rvalue *);
|
||||
ir_expression(int op, ir_rvalue *op0, ir_rvalue *op1);
|
||||
|
||||
/**
|
||||
* Constructor for quad operator expressions
|
||||
|
Reference in New Issue
Block a user