[Mesa-dev] Questions about arrays in GLSL 1.50 interface blocks

Ian Romanick idr at freedesktop.org
Wed Aug 7 15:27:47 PDT 2013


On 08/06/2013 01:34 PM, Matt Turner wrote:
> On Tue, Aug 6, 2013 at 12:11 PM, Paul Berry <stereotype441 at gmail.com> wrote:
>> Based on what we've seen with AMD and nVidia so far, it seems like the
>> intended behaviour is probably: redeclarations of interface blocks are
>> prohibited, with the exception of gl_PerVertex (which may only be redeclared
>> once in a given compilation unit).
>
> Which means disallowing user-defined unsized arrays in interface
> blocks (other than gl_PerVertex)? Seems fine, just confirming.

There's a specific example in the spec that shows unsized arrays in a 
uniform block that says "implicitly sized" in a comment.


More information about the mesa-dev mailing list