void glsl_print_struct(const struct glsl_type *type, FILE *fp);
const struct glsl_type *glsl_get_struct_field(const struct glsl_type *type,
- const char *field);
+ unsigned index);
const struct glsl_type *glsl_get_array_element(const struct glsl_type *type);
unsigned glsl_get_length(const struct glsl_type *type);
-const struct glsl_type *glsl_get_struct_elem_type(const struct glsl_type *type,
- unsigned index);
-
const char *glsl_get_struct_elem_name(const struct glsl_type *type,
unsigned index);
bool glsl_type_is_matrix(const struct glsl_type *type);
const struct glsl_type *glsl_void_type(void);
+const struct glsl_type *glsl_float_type(void);
+const struct glsl_type *glsl_vec4_type(void);
+const struct glsl_type *glsl_uint_type(void);
+const struct glsl_type *glsl_array_type(const struct glsl_type *base,
+ unsigned elements);
#ifdef __cplusplus
}