Module: Mesa
Branch: master
Commit: bd326623ef5f5ed51a843c33cc72007ff178de13
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=bd326623ef5f5ed51a843c33cc72007ff178de13

Author: Eric Anholt <[email protected]>
Date:   Tue Nov 20 18:53:34 2012 -0800

glsl: Add a note about a surprising feature of gl_uniform_storage->type.

Reviewed-by: Kenneth Graunke <[email protected]>

---

 src/glsl/ir_uniform.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

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;
 
    /**

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to