nir: Add a C wrapper for glsl_type::is_array_of_arrays().
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
@@ -184,6 +184,12 @@ glsl_type_is_array(const struct glsl_type *type)
|
||||
return type->is_array();
|
||||
}
|
||||
|
||||
bool
|
||||
glsl_type_is_array_of_arrays(const struct glsl_type *type)
|
||||
{
|
||||
return type->is_array_of_arrays();
|
||||
}
|
||||
|
||||
bool
|
||||
glsl_type_is_struct(const struct glsl_type *type)
|
||||
{
|
||||
|
||||
@@ -108,6 +108,7 @@ bool glsl_type_is_scalar(const struct glsl_type *type);
|
||||
bool glsl_type_is_vector_or_scalar(const struct glsl_type *type);
|
||||
bool glsl_type_is_matrix(const struct glsl_type *type);
|
||||
bool glsl_type_is_array(const struct glsl_type *type);
|
||||
bool glsl_type_is_array_of_arrays(const struct glsl_type *type);
|
||||
bool glsl_type_is_struct(const struct glsl_type *type);
|
||||
bool glsl_type_is_sampler(const struct glsl_type *type);
|
||||
bool glsl_type_is_image(const struct glsl_type *type);
|
||||
|
||||
Reference in New Issue
Block a user