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 57f339a9a6..b1cd9a9d63 100644 --- a/glsl_types.h +++ b/glsl_types.h @@ -168,6 +168,14 @@ struct glsl_type { } /** + * Query whether or not a type is a sampler + */ + bool is_sampler() const + { + return base_type == GLSL_TYPE_SAMPLER; + } + + /** * Query whether or not a type is the void type singleton. */ bool is_void() const |