From 87be9faa7811e77471b5bf2964e484bb9de84883 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 21 Apr 2017 10:41:13 +0200 Subject: [PATCH] glsl: add glsl_type::is_integer_64() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Samuel Pitoiset Reviewed-by: Samuel Iglesias Gonsálvez Reviewed-by: Edward O'Callaghan --- src/compiler/glsl_types.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/compiler/glsl_types.h b/src/compiler/glsl_types.h index 62af149..b98ce66 100644 --- a/src/compiler/glsl_types.h +++ b/src/compiler/glsl_types.h @@ -479,6 +479,14 @@ struct glsl_type { } /** + * 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 */ bool is_integer_32_64() const -- 2.7.4