Add glsl_type::is_record query

This commit is contained in:
Ian Romanick 2010-06-09 17:17:47 -07:00
parent 7dc2b71a89
commit 93073551f9

View file

@ -292,6 +292,14 @@ struct glsl_type {
return base_type == GLSL_TYPE_ARRAY;
}
/**
* Query whether or not a type is a record
*/
bool is_record() const
{
return base_type == GLSL_TYPE_STRUCT;
}
/**
* Query whether or not a type is the void type singleton.
*/