nir/types: Add glsl_type_is_unsized_array helper

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
This commit is contained in:
Antia Puentes 2018-11-15 09:13:08 +01:00 committed by Alejandro Piñeiro
parent bfc5e46746
commit cafc1a40d4
2 changed files with 7 additions and 0 deletions

View file

@ -279,6 +279,12 @@ glsl_type_is_array(const struct glsl_type *type)
return type->is_array();
}
bool
glsl_type_is_unsized_array(const struct glsl_type *type)
{
return type->is_unsized_array();
}
bool
glsl_type_is_array_of_arrays(const struct glsl_type *type)
{

View file

@ -121,6 +121,7 @@ bool glsl_type_is_vector_or_scalar(const struct glsl_type *type);
bool glsl_type_is_matrix(const struct glsl_type *type);
bool glsl_matrix_type_is_row_major(const struct glsl_type *type);
bool glsl_type_is_array(const struct glsl_type *type);
bool glsl_type_is_unsized_array(const struct glsl_type *type);
bool glsl_type_is_array_of_arrays(const struct glsl_type *type);
bool glsl_type_is_array_or_matrix(const struct glsl_type *type);
bool glsl_type_is_struct(const struct glsl_type *type);