diff options
Diffstat (limited to 'glsl_types.h')
-rw-r--r-- | glsl_types.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/glsl_types.h b/glsl_types.h index 7c48e792eb..97d8390e60 100644 --- a/glsl_types.h +++ b/glsl_types.h @@ -138,6 +138,16 @@ struct glsl_type { } /** + * For numeric and boolean derrived types returns the basic scalar type + * + * If the type is a numeric or boolean scalar, vector, or matrix type, + * this function gets the scalar type of the individual components. For + * all other types, including arrays of numeric or boolean types, the + * error type is returned. + */ + const glsl_type *get_base_type() const; + + /** * Query whether or not a type is a scalar (non-vector and non-matrix). */ bool is_scalar() const |