On 31 July 2013 18:05, Ian Romanick <i...@freedesktop.org> wrote:

> On 07/28/2013 11:03 PM, Paul Berry wrote:
>
>> Section 4.3.8.1 (Input Layout Qualifiers) of the GLSL 1.50 spec
>> contains some tricky rules for how the sizes of geometry shader input
>> arrays are related to the input layout specification.  In essence,
>> those rules boil down to the following:
>>
>> - If an input array declaration does not specify a size, and it
>>    follows an input layout declaration, it is sized according to the
>>    input layout.
>>
>> - If an input layout declaration follows an input array declaration
>>    that didn't specify a size, the input array declaration is given a
>>    size at the time the input layout declaration appears.
>>
>> - All input layout declarations and input array sizes must ultimately
>>    match.  Inconsistencies are reported as soon as they are detected,
>>    at compile time if the inconsistency is within one compilation unit,
>>    otherwise at link time.
>>
>
> Some later GLSL specs "clarify" that some errors are generated at
> different times.  I use scare quotes because, in reality, the spec was just
> changed to match shipping implementations.  It would be worth checking this
> last statement against the 4.30 or 4.40 spec.


Good point.  I checked the GLSL 4.40 spec and it agrees with GLSL 1.50
about this.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to