From: Chad Versace <[email protected]>
---
src/glsl/glsl_types.h | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/glsl/glsl_types.h b/src/glsl/glsl_types.h
index dccab0a..da38d48 100644
--- a/src/glsl/glsl_types.h
+++ b/src/glsl/glsl_types.h
@@ -249,6 +249,15 @@ struct glsl_type {
}
/**
+ * \brief Query whether or not a type is a vector
+ */
+ bool is_integer_vector() const
+ {
+ return is_vector()
+ and (base_type == GLSL_TYPE_INT or base_type == GLSL_TYPE_UINT);
+ }
+
+ /**
* Query whether or not a type is a matrix
*/
bool is_matrix() const
--
1.7.1
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev