nir/types: Expose glsl_type::count_attribute_slots()
This commit is contained in:
@@ -124,6 +124,12 @@ glsl_get_aoa_size(const struct glsl_type *type)
|
||||
return type->arrays_of_arrays_size();
|
||||
}
|
||||
|
||||
unsigned
|
||||
glsl_count_attribute_slots(const struct glsl_type *type)
|
||||
{
|
||||
return type->count_attribute_slots();
|
||||
}
|
||||
|
||||
const char *
|
||||
glsl_get_struct_elem_name(const struct glsl_type *type, unsigned index)
|
||||
{
|
||||
|
||||
@@ -67,6 +67,8 @@ unsigned glsl_get_length(const struct glsl_type *type);
|
||||
|
||||
unsigned glsl_get_aoa_size(const struct glsl_type *type);
|
||||
|
||||
unsigned glsl_count_attribute_slots(const struct glsl_type *type);
|
||||
|
||||
const char *glsl_get_struct_elem_name(const struct glsl_type *type,
|
||||
unsigned index);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user