mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
nir: wrapper for glsl_type arrays_of_arrays_size()
Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
fd5e0581dd
commit
2e1798f183
2 changed files with 8 additions and 0 deletions
|
|
@ -106,6 +106,12 @@ glsl_get_length(const struct glsl_type *type)
|
|||
return type->is_matrix() ? type->matrix_columns : type->length;
|
||||
}
|
||||
|
||||
unsigned
|
||||
glsl_get_aoa_size(const struct glsl_type *type)
|
||||
{
|
||||
return type->arrays_of_arrays_size();
|
||||
}
|
||||
|
||||
const char *
|
||||
glsl_get_struct_elem_name(const struct glsl_type *type, unsigned index)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -59,6 +59,8 @@ unsigned glsl_get_matrix_columns(const struct glsl_type *type);
|
|||
|
||||
unsigned glsl_get_length(const struct glsl_type *type);
|
||||
|
||||
unsigned glsl_get_aoa_size(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