summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-06-09 17:17:47 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-06-11 13:51:42 -0700
commit93073551f9fff0df5ad1f65e0f483e6699474b91 (patch)
tree66fbe76e8440e81187333517d696cf057326898b
parent7dc2b71a89ac24f2d84f7db6bd8a4d499694cac5 (diff)
Add glsl_type::is_record query
-rw-r--r--glsl_types.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/glsl_types.h b/glsl_types.h
index 22df13b07f..823897df4a 100644
--- a/glsl_types.h
+++ b/glsl_types.h
@@ -293,6 +293,14 @@ struct glsl_type {
}
/**
+ * Query whether or not a type is a record
+ */
+ bool is_record() const
+ {
+ return base_type == GLSL_TYPE_STRUCT;
+ }
+
+ /**
* Query whether or not a type is the void type singleton.
*/
bool is_void() const