diff --git a/src/compiler/glsl_types.h b/src/compiler/glsl_types.h index 62af1496daa..b98ce66c48d 100644 --- a/src/compiler/glsl_types.h +++ b/src/compiler/glsl_types.h @@ -478,6 +478,14 @@ struct glsl_type { return (base_type == GLSL_TYPE_UINT) || (base_type == GLSL_TYPE_INT); } + /** + * 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 */