diff options
author | Matt Turner <mattst88@gmail.com> | 2015-03-27 10:43:05 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2015-03-31 14:01:15 -0700 |
commit | 73f6f9b9be1aedf85cfe15b87e3c543e5cc399d2 (patch) | |
tree | addf8af5768915050dc61a7b9234ce93f64b7e65 /src/glsl/glsl_types.h | |
parent | f9e2295560f9b4869fa2a94933c1881ec7970af4 (diff) | |
download | external_mesa3d-73f6f9b9be1aedf85cfe15b87e3c543e5cc399d2.zip external_mesa3d-73f6f9b9be1aedf85cfe15b87e3c543e5cc399d2.tar.gz external_mesa3d-73f6f9b9be1aedf85cfe15b87e3c543e5cc399d2.tar.bz2 |
glsl: Factor out a get_mul_type() function.
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Diffstat (limited to 'src/glsl/glsl_types.h')
-rw-r--r-- | src/glsl/glsl_types.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glsl/glsl_types.h b/src/glsl/glsl_types.h index 7359e94..d383dd5 100644 --- a/src/glsl/glsl_types.h +++ b/src/glsl/glsl_types.h @@ -276,6 +276,12 @@ struct glsl_type { const char *block_name); /** + * Get the type resulting from a multiplication of \p type_a * \p type_b + */ + static const glsl_type *get_mul_type(const glsl_type *type_a, + const glsl_type *type_b); + + /** * Query the total number of scalars that make up a scalar, vector or matrix */ unsigned components() const |