Home | History | Annotate | Download | only in glsl

Lines Matching refs:glsl_type

68 struct glsl_type {
84 if (glsl_type::mem_ctx == NULL) {
85 glsl_type::mem_ctx = hieralloc_init("glsl_type");
86 assert(glsl_type::mem_ctx != NULL);
91 type = hieralloc_size(glsl_type::mem_ctx, size);
134 const struct glsl_type *array; /**< Type of array elements. */
135 const struct glsl_type *parameters; /**< Parameters to function. */
144 static const glsl_type *const error_type;
145 static const glsl_type *const int_type;
146 static const glsl_type *const ivec4_type;
147 static const glsl_type *const uint_type;
148 static const glsl_type *const uvec2_type;
149 static const glsl_type *const uvec3_type;
150 static const glsl_type *const uvec4_type;
151 static const glsl_type *const float_type;
152 static const glsl_type *const vec2_type;
153 static const glsl_type *const vec3_type;
154 static const glsl_type *const vec4_type;
155 static const glsl_type *const bool_type;
156 static const glsl_type *const mat2_type;
157 static const glsl_type *const mat2x3_type;
158 static const glsl_type *const mat2x4_type;
159 static const glsl_type *const mat3x2_type;
160 static const glsl_type *const mat3_type;
161 static const glsl_type *const mat3x4_type;
162 static const glsl_type *const mat4x2_type;
163 static const glsl_type *const mat4x3_type;
164 static const glsl_type *const mat4_type;
176 const glsl_type *get_base_type() const;
185 const glsl_type *element_type() const
193 static const glsl_type *get_instance(unsigned base_type, unsigned rows,
199 static const glsl_type *get_array_instance(const glsl_type *base,
205 static const glsl_type *get_record_instance(const glsl_struct_field *fields,
332 * If the type is not a matrix, \c glsl_type::error_type is returned.
335 const glsl_type *row_type() const
346 * If the type is not a matrix, \c glsl_type::error_type is returned.
349 const glsl_type *column_type() const
362 * or the named field does not exist, \c glsl_type::error_type is returned.
364 const glsl_type *field_type(const char *name) const;
388 * hieralloc context for all glsl_type allocations
390 * Set on the first call to \c glsl_type::new.
397 glsl_type(GLenum gl_type,
402 glsl_type(GLenum gl_type,
407 glsl_type(const glsl_struct_field *fields, unsigned num_fields,
411 glsl_type(const glsl_type *array, unsigned length);
426 static const glsl_type _error_type;
427 static const glsl_type void_type;
428 static const glsl_type builtin_core_types[];
429 static const glsl_type builtin_structure_types[];
430 static const glsl_type builtin_110_deprecated_structure_types[];
431 static const glsl_type builtin_110_types[];
432 static const glsl_type builtin_120_types[];
433 static const glsl_type builtin_130_types[];
434 static const glsl_type builtin_ARB_texture_rectangle_types[];
435 static const glsl_type builtin_EXT_texture_array_types[];
436 static const glsl_type builtin_EXT_texture_buffer_object_types[];
470 const struct glsl_type *type;