Reviewed-by: Karol Herbst <kherbst@redhat.com>
}
return false;
} else {
- return glsl_base_type_is_integer(this->base_type);
+ return this->is_integer();
}
}
return (base_type >= GLSL_TYPE_UINT) && (base_type <= GLSL_TYPE_INT64);
}
+ /**
+ * Query whether or not a type is an integer.
+ */
+ bool is_integer() const
+ {
+ return glsl_base_type_is_integer(base_type);
+ }
+
/**
* Query whether or not a type is an 32-bit integer.
*/
bool
glsl_type_is_integer(const struct glsl_type *type)
{
- return glsl_base_type_is_integer(type->base_type);
+ return type->is_integer();
}
bool