mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
Add glsl_type::is_record query
This commit is contained in:
parent
7dc2b71a89
commit
93073551f9
1 changed files with 8 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue