summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-11-20 18:53:34 -0800
committerEric Anholt <[email protected]>2012-12-28 10:53:42 -0800
commitbd326623ef5f5ed51a843c33cc72007ff178de13 (patch)
tree764a7c5d29f5c749356bad460322625caebf70ed
parentf189570ccf60ab665cbe9feeff52685600f8163d (diff)
glsl: Add a note about a surprising feature of gl_uniform_storage->type.
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r--src/glsl/ir_uniform.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/ir_uniform.h b/src/glsl/ir_uniform.h
index 913c5377359..30e6f260d75 100644
--- a/src/glsl/ir_uniform.h
+++ b/src/glsl/ir_uniform.h
@@ -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;
/**