diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-04-23 13:21:22 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-04-28 18:22:54 -0700 |
commit | 82baaf428308e83ad28ca0914c13af59e8a28374 (patch) | |
tree | b4651591b0eb218a5847800255eea6c0af461741 /glsl_types.h | |
parent | 85ba37b97df8edd18b757bc475b12b66f4b117ed (diff) |
glsl_type::generate_constructor_prototype now generates the function too
Also, change the name of the method to generate_constructor.
Diffstat (limited to 'glsl_types.h')
-rw-r--r-- | glsl_types.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/glsl_types.h b/glsl_types.h index 1f8559aa6a..96e4c74d5b 100644 --- a/glsl_types.h +++ b/glsl_types.h @@ -199,8 +199,10 @@ struct glsl_type { static const glsl_type *get_array_instance(const glsl_type *base, unsigned elements); - class ir_function *generate_constructor_prototype(class glsl_symbol_table *) - const; + /** + * Generate the constructor for this type and add it to the symbol table + */ + class ir_function *generate_constructor(class glsl_symbol_table *) const; /** * Query the total number of scalars that make up a scalar, vector or matrix |