diff options
-rw-r--r-- | glsl_types.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/glsl_types.h b/glsl_types.h index 22df13b07f..823897df4a 100644 --- 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 |