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 913c5377359d4a831c47d54fce5ee5953eb3d449..30e6f260d75eec9b72c1311d5d9c687d2fc112d3 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;
 
    /**