projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dc2b71
)
Add glsl_type::is_record query
author
Ian Romanick
<ian.d.romanick@intel.com>
Thu, 10 Jun 2010 00:17:47 +0000
(17:17 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Fri, 11 Jun 2010 20:51:42 +0000
(13:51 -0700)
glsl_types.h
patch
|
blob
|
history
diff --git
a/glsl_types.h
b/glsl_types.h
index
22df13b
..
823897d
100644
(file)
--- 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