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:
committed by
Alejandro Piñeiro
parent
bfc5e46746
commit
cafc1a40d4
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user