[Mesa-dev] [PATCH 06/10] glsl: Add a note about a surprising feature of gl_uniform_storage->type.
Eric Anholt
eric at anholt.net
Mon Dec 24 09:53:32 PST 2012
---
src/glsl/ir_uniform.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/glsl/ir_uniform.h b/src/glsl/ir_uniform.h
index 913c537..30e6f26 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;
/**
--
1.7.10.4
More information about the mesa-dev
mailing list