nir/types: Add a wrapper for count_attribute_slots

Reviewed-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
Jason Ekstrand 2016-03-25 16:12:19 -07:00 committed by Alejandro Piñeiro
parent 828d84c8e2
commit 05db680248
2 changed files with 10 additions and 0 deletions

View File

@ -124,6 +124,13 @@ 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,
bool vertex_input_slots)
{
return type->count_attribute_slots(vertex_input_slots);
}
const char *
glsl_get_struct_elem_name(const struct glsl_type *type, unsigned index)
{

View File

@ -68,6 +68,9 @@ 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,
bool vertex_input_slots);
const char *glsl_get_struct_elem_name(const struct glsl_type *type,
unsigned index);