From: Samuel Pitoiset Date: Fri, 21 Apr 2017 08:13:49 +0000 (+0200) Subject: glsl: add glsl_type::is_atomic_uint() helper X-Git-Tag: upstream/18.1.0~10553 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=993a05f0eb4992a3608e54b607a07330b9fbe196;p=platform%2Fupstream%2Fmesa.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 7709556..10a22ae 100644 --- a/src/compiler/glsl_types.h +++ b/src/compiler/glsl_types.h @@ -669,6 +669,14 @@ struct glsl_type { } /** + * 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. */ unsigned atomic_size() const