From bd326623ef5f5ed51a843c33cc72007ff178de13 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 20 Nov 2012 18:53:34 -0800 Subject: [PATCH] glsl: Add a note about a surprising feature of gl_uniform_storage->type. Reviewed-by: Kenneth Graunke --- 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 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; /** -- 2.30.2