mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
nir_types: add glsl_varying_count helper
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
b62a8149ab
commit
9f68b9ac71
2 changed files with 7 additions and 0 deletions
|
|
@ -157,6 +157,12 @@ glsl_get_component_slots(const struct glsl_type *type)
|
|||
return type->component_slots();
|
||||
}
|
||||
|
||||
unsigned
|
||||
glsl_varying_count(const struct glsl_type *type)
|
||||
{
|
||||
return type->varying_count();
|
||||
}
|
||||
|
||||
const char *
|
||||
glsl_get_struct_elem_name(const struct glsl_type *type, unsigned index)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ unsigned glsl_get_aoa_size(const struct glsl_type *type);
|
|||
unsigned glsl_count_attribute_slots(const struct glsl_type *type,
|
||||
bool is_gl_vertex_input);
|
||||
unsigned glsl_get_component_slots(const struct glsl_type *type);
|
||||
unsigned glsl_varying_count(const struct glsl_type *type);
|
||||
|
||||
const char *glsl_get_struct_elem_name(const struct glsl_type *type,
|
||||
unsigned index);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue