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. */