summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-11-03 10:21:07 -0700
committerEric Anholt <[email protected]>2010-11-30 11:23:24 -0800
commit6b937465d4aeab72fabcfe5250d477cf6790a521 (patch)
tree74ec8b952279594a1bab49ae1276a07e17363320 /src/glsl/ir.h
parent68a4f6324712d7eae327ee438a41c432ec72f11d (diff)
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.
Diffstat (limited to 'src/glsl/ir.h')
-rw-r--r--src/glsl/ir.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h
index 62bb0fd7096..625397a5995 100644
--- a/src/glsl/ir.h
+++ b/src/glsl/ir.h
@@ -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