nir/types: Add a wrapper for count_attribute_slots
[mesa.git] / src / compiler / nir_types.h
index 07487838b50e73ed378bdb86b3fc6a395b62f03f..5efdd85dea5264ee275ff460bdb06511afc5dd21 100644 (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);