glsl: add is_array_of_arrays() helper
As suggested by Ian Romanick Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
@@ -513,6 +513,11 @@ struct glsl_type {
|
||||
return base_type == GLSL_TYPE_ARRAY;
|
||||
}
|
||||
|
||||
bool is_array_of_arrays() const
|
||||
{
|
||||
return is_array() && fields.array->is_array();
|
||||
}
|
||||
|
||||
/**
|
||||
* Query whether or not a type is a record
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user