Lines Matching refs:glsl_type

35 hash_table *glsl_type::array_types = NULL;
36 hash_table *glsl_type::record_types = NULL;
37 void *glsl_type::mem_ctx = NULL;
40 glsl_type::init_ralloc_type_ctx(void)
42 if (glsl_type::mem_ctx == NULL) {
43 glsl_type::mem_ctx = ralloc_autofree_context();
44 assert(glsl_type::mem_ctx != NULL);
48 glsl_type::glsl_type(GLenum gl_type,
66 glsl_type::glsl_type(GLenum gl_type,
81 glsl_type::glsl_type(const glsl_struct_field *fields, unsigned num_fields,
104 const struct glsl_type *types,
115 glsl_type::contains_sampler() const
131 glsl_type::sampler_index() const
133 const glsl_type *const t = (this->is_array()) ? this->fields.array : this;
159 glsl_type::generate_100ES_types(glsl_symbol_table *symtab)
171 glsl_type::generate_110_types(glsl_symbol_table *symtab, bool add_deprecated)
188 glsl_type::generate_120_types(glsl_symbol_table *symtab, bool add_deprecated)
198 glsl_type::generate_130_types(glsl_symbol_table *symtab, bool add_deprecated)
209 glsl_type::generate_140_types(glsl_symbol_table *symtab)
223 glsl_type::generate_ARB_texture_rectangle_types(glsl_symbol_table *symtab,
233 glsl_type::generate_EXT_texture_array_types(glsl_symbol_table *symtab,
243 glsl_type::generate_OES_texture_3D_types(glsl_symbol_table *symtab, bool warn)
250 glsl_type::generate_OES_EGL_image_external_types(glsl_symbol_table *symtab,
264 glsl_type::generate_100ES_types(state->symbols);
267 glsl_type::generate_110_types(state->symbols, true);
270 glsl_type::generate_120_types(state->symbols, true);
273 glsl_type::generate_130_types(state->symbols, true);
276 glsl_type::generate_140_types(state->symbols);
285 glsl_type::generate_ARB_texture_rectangle_types(state->symbols,
289 glsl_type::generate_OES_texture_3D_types(state->symbols,
295 glsl_type::generate_EXT_texture_array_types(state->symbols,
304 glsl_type::generate_OES_EGL_image_external_types(state->symbols,
310 const glsl_type *glsl_type::get_base_type() const
327 const glsl_type *glsl_type::get_scalar_type() const
329 const glsl_type *type = this;
353 if (glsl_type::array_types != NULL) {
354 hash_table_dtor(glsl_type::array_types);
355 glsl_type::array_types = NULL;
358 if (glsl_type::record_types != NULL) {
359 hash_table_dtor(glsl_type::record_types);
360 glsl_type::record_types = NULL;
365 glsl_type::glsl_type(const glsl_type *array, unsigned length) :
395 const glsl_type *
396 glsl_type::get_instance(unsigned base_type, unsigned rows, unsigned columns)
453 const glsl_type *
454 glsl_type::get_array_instance(const glsl_type *base, unsigned array_size)
470 const glsl_type *t = (glsl_type *) hash_table_find(array_types, key);
472 t = new glsl_type(base, array_size);
486 glsl_type::record_key_compare(const void *a, const void *b)
488 const glsl_type *const key1 = (glsl_type *) a;
489 const glsl_type *const key2 = (glsl_type *) b;
513 glsl_type::record_key_hash(const void *a)
515 const glsl_type *const key = (glsl_type *) a;
533 const glsl_type *
534 glsl_type::get_record_instance(const glsl_struct_field *fields,
538 const glsl_type key(fields, num_fields, name);
544 const glsl_type *t = (glsl_type *) hash_table_find(record_types, & key);
546 t = new glsl_type(fields, num_fields, name);
559 const glsl_type *
560 glsl_type::field_type(const char *name) const
575 glsl_type::field_index(const char *name) const
590 glsl_type::component_slots() const
617 glsl_type::can_implicitly_convert_to(const glsl_type *desired) const
633 glsl_type::std140_base_alignment(bool row_major) const
697 const struct glsl_type *vec_type, *array_type;
703 array_type = glsl_type::get_array_instance(vec_type, r);
706 array_type = glsl_type::get_array_instance(vec_type, c);
727 const struct glsl_type *field_type = this->fields.structure[i].type;
745 glsl_type::std140_size(bool row_major) const
781 const struct glsl_type *element_type;
782 const struct glsl_type *vec_type;
802 const glsl_type *array_type = glsl_type::get_array_instance(vec_type,
843 const struct glsl_type *field_type = this->fields.structure[i].type;