Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
return type->fields.structure[index].type;
}
+const int
+glsl_get_struct_field_offset(const struct glsl_type *type,
+ unsigned index)
+{
+ return type->fields.structure[index].offset;
+}
+
const glsl_type *
glsl_get_function_return_type(const glsl_type *type)
{
const struct glsl_type *glsl_get_struct_field(const struct glsl_type *type,
unsigned index);
+const int glsl_get_struct_field_offset(const struct glsl_type *type,
+ unsigned index);
+
const struct glsl_type *glsl_get_array_element(const struct glsl_type *type);
const struct glsl_type *glsl_without_array(const struct glsl_type *type);
const struct glsl_type *glsl_without_array_or_matrix(const struct glsl_type *type);