Lines Matching refs:glsl_type

76 struct glsl_type {
92 if (glsl_type::mem_ctx == NULL) {
93 glsl_type::mem_ctx = ralloc_context(NULL);
94 assert(glsl_type::mem_ctx != NULL);
99 type = ralloc_size(glsl_type::mem_ctx, size);
142 const struct glsl_type *array; /**< Type of array elements. */
143 const struct glsl_type *parameters; /**< Parameters to function. */
152 static const glsl_type *const error_type;
153 static const glsl_type *const void_type;
154 static const glsl_type *const int_type;
155 static const glsl_type *const ivec2_type;
156 static const glsl_type *const ivec3_type;
157 static const glsl_type *const ivec4_type;
158 static const glsl_type *const uint_type;
159 static const glsl_type *const uvec2_type;
160 static const glsl_type *const uvec3_type;
161 static const glsl_type *const uvec4_type;
162 static const glsl_type *const float_type;
163 static const glsl_type *const vec2_type;
164 static const glsl_type *const vec3_type;
165 static const glsl_type *const vec4_type;
166 static const glsl_type *const bool_type;
167 static const glsl_type *const bvec2_type;
168 static const glsl_type *const bvec3_type;
169 static const glsl_type *const bvec4_type;
170 static const glsl_type *const mat2_type;
171 static const glsl_type *const mat2x3_type;
172 static const glsl_type *const mat2x4_type;
173 static const glsl_type *const mat3x2_type;
174 static const glsl_type *const mat3_type;
175 static const glsl_type *const mat3x4_type;
176 static const glsl_type *const mat4x2_type;
177 static const glsl_type *const mat4x3_type;
178 static const glsl_type *const mat4_type;
190 const glsl_type *get_base_type() const;
201 const glsl_type *get_scalar_type() const;
210 const glsl_type *element_type() const
218 static const glsl_type *get_instance(unsigned base_type, unsigned rows,
224 static const glsl_type *get_array_instance(const glsl_type *base,
230 static const glsl_type *get_record_instance(const glsl_struct_field *fields,
297 bool can_implicitly_convert_to(const glsl_type *desired) const;
416 * If the type is not a matrix, \c glsl_type::error_type is returned.
419 const glsl_type *row_type() const
430 * If the type is not a matrix, \c glsl_type::error_type is returned.
433 const glsl_type *column_type() const
446 * or the named field does not exist, \c glsl_type::error_type is returned.
448 const glsl_type *field_type(const char *name) const;
472 * ralloc context for all glsl_type allocations
474 * Set on the first call to \c glsl_type::new.
481 glsl_type(GLenum gl_type,
486 glsl_type(GLenum gl_type,
491 glsl_type(const glsl_struct_field *fields, unsigned num_fields,
495 glsl_type(const glsl_type *array, unsigned length);
510 static const glsl_type _error_type;
511 static const glsl_type _void_type;
512 static const glsl_type _sampler3D_type;
513 static const glsl_type builtin_core_types[];
514 static const glsl_type builtin_structure_types[];
515 static const glsl_type builtin_110_deprecated_structure_types[];
516 static const glsl_type builtin_110_types[];
517 static const glsl_type builtin_120_types[];
518 static const glsl_type builtin_130_types[];
519 static const glsl_type builtin_140_types[];
520 static const glsl_type builtin_ARB_texture_rectangle_types[];
521 static const glsl_type builtin_EXT_texture_array_types[];
522 static const glsl_type builtin_EXT_texture_buffer_object_types[];
523 static const glsl_type builtin_OES_EGL_image_external_types[];
560 const struct glsl_type *type;