From: Samuel Pitoiset Date: Fri, 21 Apr 2017 08:41:13 +0000 (+0200) Subject: glsl: add glsl_type::is_integer_64() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=87be9faa7811e77471b5bf2964e484bb9de84883;p=mesa.git glsl: add glsl_type::is_integer_64() Signed-off-by: Samuel Pitoiset Reviewed-by: Samuel Iglesias Gonsálvez Reviewed-by: Edward O'Callaghan --- diff --git a/src/compiler/glsl_types.h b/src/compiler/glsl_types.h index 62af1496daa..b98ce66c48d 100644 --- a/src/compiler/glsl_types.h +++ b/src/compiler/glsl_types.h @@ -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 */