projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52df318
)
glsl: add glsl_type::is_atomic_uint() helper
author
Samuel Pitoiset
<samuel.pitoiset@gmail.com>
Fri, 21 Apr 2017 08:13:49 +0000
(10:13 +0200)
committer
Samuel Pitoiset
<samuel.pitoiset@gmail.com>
Fri, 21 Apr 2017 17:33:27 +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 7709556fe0cdc989b505ae6770f02ca8a8849f55..10a22aee0ac5b770605a0ed1fefa36964bb2f139 100644
(file)
--- a/
src/compiler/glsl_types.h
+++ b/
src/compiler/glsl_types.h
@@
-668,6
+668,14
@@
struct glsl_type {
return size;
}
+ /**
+ * Query whether or not a type is an atomic_uint.
+ */
+ bool is_atomic_uint() const
+ {
+ return base_type == GLSL_TYPE_ATOMIC_UINT;
+ }
+
/**
* Return the amount of atomic counter storage required for a type.
*/