glsl: add glsl_type::is_integer_64()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
This commit is contained in:
parent
60caca3019
commit
87be9faa78
|
@ -478,6 +478,14 @@ struct glsl_type {
|
|||
return (base_type == GLSL_TYPE_UINT) || (base_type == GLSL_TYPE_INT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Query whether or not a type is a 64-bit integer.
|
||||
*/
|
||||
bool is_integer_64() const
|
||||
{
|
||||
return base_type == GLSL_TYPE_UINT64 || base_type == GLSL_TYPE_INT64;
|
||||
}
|
||||
|
||||
/**
|
||||
* Query whether or not a type is a 32-bit or 64-bit integer
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue