[Mesa-dev] [PATCH 07/11] glsl: add glsl_type::is_integer_64()

Samuel Pitoiset samuel.pitoiset at gmail.com
Fri Apr 21 09:53:27 UTC 2017


Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 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 62af1496da..b98ce66c48 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.12.2



More information about the mesa-dev mailing list