aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/ir.h
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2013-08-05 15:15:37 -0700
committerMatt Turner <[email protected]>2013-09-17 16:59:14 -0700
commit5561251b58c976a70125bb07dc1c6cc2bd2541f4 (patch)
tree3677012e424204d7f3a8e3fd68d774bea3a6deba /src/glsl/ir.h
parentb2ab840130677bbe7b67de4727fcd91ee6506bb8 (diff)
glsl: Allow vectors to be created from ir_constant().
Note the parameter name change in the int version of ir_constant, to avoid the conflict with the loop iterator. v2: Make analogous change to builtin_builder::imm(). Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/glsl/ir.h')
-rw-r--r--src/glsl/ir.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h
index b0e77327711..6c5630b0965 100644
--- a/src/glsl/ir.h
+++ b/src/glsl/ir.h
@@ -1922,10 +1922,10 @@ union ir_constant_data {
class ir_constant : public ir_rvalue {
public:
ir_constant(const struct glsl_type *type, const ir_constant_data *data);
- ir_constant(bool b);
- ir_constant(unsigned int u);
- ir_constant(int i);
- ir_constant(float f);
+ ir_constant(bool b, unsigned vector_elements=1);
+ ir_constant(unsigned int u, unsigned vector_elements=1);
+ ir_constant(int i, unsigned vector_elements=1);
+ ir_constant(float f, unsigned vector_elements=1);
/**
* Construct an ir_constant from a list of ir_constant values