summaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_types.h
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@chown.ath.cx>2013-11-27 00:15:05 +0100
committerMatt Turner <mattst88@gmail.com>2014-01-21 14:01:09 -0800
commit41c9bf884ff266e9c2286002446ed2297838086f (patch)
treee6a2146d1f414270db1f4104a293f3787172873a /src/glsl/glsl_types.h
parent6d8cf5181a09913eb856cfd2914d09a1644c26be (diff)
downloadexternal_mesa3d-41c9bf884ff266e9c2286002446ed2297838086f.zip
external_mesa3d-41c9bf884ff266e9c2286002446ed2297838086f.tar.gz
external_mesa3d-41c9bf884ff266e9c2286002446ed2297838086f.tar.bz2
glsl: Extract function for record comparisons.
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/glsl/glsl_types.h')
-rw-r--r--src/glsl/glsl_types.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/glsl/glsl_types.h b/src/glsl/glsl_types.h
index fb7c928..f88758a 100644
--- a/src/glsl/glsl_types.h
+++ b/src/glsl/glsl_types.h
@@ -542,6 +542,13 @@ struct glsl_type {
*/
int sampler_coordinate_components() const;
+ /**
+ * Compare a record type against another record type.
+ *
+ * This is useful for matching record types declared across shader stages.
+ */
+ bool record_compare(const glsl_type *b) const;
+
private:
/**
* ralloc context for all glsl_type allocations