From: Samuel Pitoiset Date: Fri, 21 Apr 2017 08:13:49 +0000 (+0200) Subject: glsl: add glsl_type::is_atomic_uint() helper X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=993a05f0eb4992a3608e54b607a07330b9fbe196;p=mesa.git glsl: add glsl_type::is_atomic_uint() helper 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 7709556fe0c..10a22aee0ac 100644 --- 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. */