glsl: Add a note about a surprising feature of gl_uniform_storage->type.
authorEric Anholt <eric@anholt.net>
Wed, 21 Nov 2012 02:53:34 +0000 (18:53 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 28 Dec 2012 18:53:42 +0000 (10:53 -0800)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ir_uniform.h

index 913c537..30e6f26 100644 (file)
@@ -80,6 +80,10 @@ struct gl_uniform_driver_storage {
 
 struct gl_uniform_storage {
    char *name;
+   /** Type of this uniform data stored.
+    *
+    * In the case of an array, it's the type of a single array element.
+    */
    const struct glsl_type *type;
 
    /**