<div dir="ltr">On 31 July 2013 18:05, Ian Romanick <span dir="ltr"><<a href="mailto:idr@freedesktop.org" target="_blank">idr@freedesktop.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 07/28/2013 11:03 PM, Paul Berry wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Section 4.3.8.1 (Input Layout Qualifiers) of the GLSL 1.50 spec<br>
contains some tricky rules for how the sizes of geometry shader input<br>
arrays are related to the input layout specification. In essence,<br>
those rules boil down to the following:<br>
<br>
- If an input array declaration does not specify a size, and it<br>
follows an input layout declaration, it is sized according to the<br>
input layout.<br>
<br>
- If an input layout declaration follows an input array declaration<br>
that didn't specify a size, the input array declaration is given a<br>
size at the time the input layout declaration appears.<br>
<br>
- All input layout declarations and input array sizes must ultimately<br>
match. Inconsistencies are reported as soon as they are detected,<br>
at compile time if the inconsistency is within one compilation unit,<br>
otherwise at link time.<br>
</blockquote>
<br></div>
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.</blockquote>
<div><br></div><div>Good point. I checked the GLSL 4.40 spec and it agrees with GLSL 1.50 about this.<br></div></div></div></div>