mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
Add query to determine whether a type is a sampler
This commit is contained in:
parent
1e5cd2b05b
commit
cb7d066967
1 changed files with 8 additions and 0 deletions
|
|
@ -167,6 +167,14 @@ struct glsl_type {
|
|||
return (matrix_rows > 0) && (base_type == GLSL_TYPE_FLOAT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Query whether or not a type is a sampler
|
||||
*/
|
||||
bool is_sampler() const
|
||||
{
|
||||
return base_type == GLSL_TYPE_SAMPLER;
|
||||
}
|
||||
|
||||
/**
|
||||
* Query whether or not a type is the void type singleton.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue