Mesa (master): glsl: Add a note about a surprising feature of gl_uniform_storage->type.

Eric Anholt anholt at kemper.freedesktop.org
Fri Dec 28 19:03:49 UTC 2012


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

Author: Eric Anholt <eric at anholt.net>
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 <kenneth at whitecape.org>

---

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




More information about the mesa-commit mailing list