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:
Samuel Pitoiset 2017-04-21 10:41:13 +02:00
parent 60caca3019
commit 87be9faa78
1 changed files with 8 additions and 0 deletions

View File

@ -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
*/