diff options
author | Grigori Goronzy <greg@chown.ath.cx> | 2013-11-27 00:15:05 +0100 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2014-01-21 14:01:09 -0800 |
commit | 41c9bf884ff266e9c2286002446ed2297838086f (patch) | |
tree | e6a2146d1f414270db1f4104a293f3787172873a /src/glsl/glsl_types.h | |
parent | 6d8cf5181a09913eb856cfd2914d09a1644c26be (diff) | |
download | external_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.h | 7 |
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 |