It is basically a wrapper around glsl_type::component_slots().
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
return type->count_attribute_slots(is_vertex_input);
}
+unsigned
+glsl_get_component_slots(const struct glsl_type *type)
+{
+ return type->component_slots();
+}
+
const char *
glsl_get_struct_elem_name(const struct glsl_type *type, unsigned index)
{
unsigned glsl_count_attribute_slots(const struct glsl_type *type,
bool is_vertex_input);
+unsigned glsl_get_component_slots(const struct glsl_type *type);
const char *glsl_get_struct_elem_name(const struct glsl_type *type,
unsigned index);