summaryrefslogtreecommitdiff
path: root/glsl_types.h
AgeCommit message (Collapse)Author
2010-06-23glsl_type: Add method to get number of slots used by a typeIan Romanick
2010-06-11Add glsl_types::field_index to get the location of a record fieldIan Romanick
2010-06-11Add glsl_type::is_record queryIan Romanick
2010-06-09Set the type of ir_texture properly; infer it from the sampler type.Kenneth Graunke
2010-04-28glsl_type::generate_constructor_prototype now generates the function tooIan Romanick
Also, change the name of the method to generate_constructor.
2010-04-28Add glsl_type::field_typeIan Romanick
Query the type of a structure field
2010-04-26Make private glsl_type singletons publicIan Romanick
2010-04-23Put static pointers to vec[234]_types along with the static float_type.Eric Anholt
Otherwise you have to type a lot of get_instance.
2010-04-01Add glsl_type::element_type and glsl_type::array_size queriesIan Romanick
The former gets the type of elements in an array, and the later gets the declared size, if any, of the array.
2010-03-31Add glsl_type::generate_constructor_prototypeIan Romanick
Generates a symbol table entry and the IR approximation of a prototype for a type's constructor. Currently only arrays are supported.
2010-03-31Fix big dumbness in glsl_type::get_array_instanceIan Romanick
hash_table_insert needs to keep the key so that it compare keys on a following hash_table_find call. Since key was allocated on the stack, it disappeared out from under the hash table.
2010-03-31glsl_type array constructor generate a real name for the typeIan Romanick
2010-03-30Implement array type handlingIan Romanick
Since all glsl_type objects are flyweights, support is added to track all known array types. This accounts for most of the changes.
2010-03-29Add glsl_type::is_array and glsl_type::is_float queriesIan Romanick
2010-03-26Slightly change the representation of numeric typesIan Romanick
For numeric types, vector_elements and matrix_columns must be at least 1. Previously matrix_columns was 0 for vectors, and both were 0 for scalars. This change simplifies things in some places.
2010-03-26Add glsl_type::components to query total number of components in a typeIan Romanick
2010-03-26Replace remaining use of is_error_type with glsl_type::is_errorIan Romanick
2010-03-26Replace remaining uses of is_numeric_base_type with glsl_type::is_numericIan Romanick
2010-03-26Replace is_integer_base_type macro with glsl_type::is_integer methodIan Romanick
2010-03-26Make glsl_*_type glsl_type class static dataIan Romanick
2010-03-25Add functions to generate constructors for built-in types.Ian Romanick
Currently only vector and matrix types are supported. Structure types will be added later.
2010-03-25Fix matrix dimensioningIan Romanick
Newb GL mistake: matrices in GL are column-major. This means that vector_elements is the number of rows. Making these changes causes matrix-08.glsl to pass.
2010-03-25Add queries to get the glsl_type of a row or column of a matrixIan Romanick
2010-03-24Remove unused _mesa_glsl_get_vector_typeIan Romanick
This function has been completely replaced by glsl_type::get_instance.
2010-03-24Add glsl_type::get_instance methodIan Romanick
Gets the singleton corresponding to a particular scalar, vector, or matrix type.
2010-03-24Add class-private handles to matrix types in glsl_typeIan Romanick
2010-03-23Add glsl_type::get_base_type queryIan Romanick
Retreives the glsl_type that corresponds to the base type of a numeric scalar / vector / matrix type. So vec4 returns float, etc.
2010-03-23Add glsl_type::is_numeric and glsl_type::is_boolean queriesIan Romanick
2010-03-23Add query to determine whether a type is a samplerIan Romanick
2010-03-23Add is_error and is_void type queriesIan Romanick
2010-03-10Tell emacs that C++ .h files are C++Ian Romanick
2010-03-09Convert is_glsl_type_matrix to glsl_type::is_matrixIan Romanick
2010-03-09Convert is_glsl_type_vector to glsl_type::is_vectorIan Romanick
2010-03-09Convert is_glsl_type_scalar to glsl_type::is_scalarIan Romanick
2010-03-09Make glsl_type a classIan Romanick
Among other benefits, this cleans up a the hackery invovled in initializing the union field in builtin_types.h.
2010-02-22Initial commit. lolIan Romanick