projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60caca3
)
glsl: add glsl_type::is_integer_64()
author
Samuel Pitoiset
<samuel.pitoiset@gmail.com>
Fri, 21 Apr 2017 08:41:13 +0000
(10:41 +0200)
committer
Samuel Pitoiset
<samuel.pitoiset@gmail.com>
Fri, 21 Apr 2017 17:33:40 +0000
(19:33 +0200)
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>
src/compiler/glsl_types.h
patch
|
blob
|
history
diff --git
a/src/compiler/glsl_types.h
b/src/compiler/glsl_types.h
index
62af149
..
b98ce66
100644
(file)
--- 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