On 04/09/2014 01:11 AM, Chris Forbes wrote: > On Wed, Apr 9, 2014 at 7:23 AM, Ian Romanick <i...@freedesktop.org> wrote: > >> I believe UBO array indices are also dynamically uniform. > > I was surprised to find this when building the list too, but I believe > it's unrestricted. > > The GLSL 4.0 spec, 4.3.7 p43 (bottom of) says: > > "Any integral expression can be used to index a uniform block array."
Yeah... that was an oversight. This was fixed in GLSL 4.40: "A uniform or shader storage block array can only be indexed with a dynamically uniform integral expression, otherwise results are undefined." > The corresponding language for arrays of samplers is: > > "...a dynamically uniform integral expression, otherwise results > are undefined." _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev