[Mesa-dev] [PATCH] glsl: Add support for parsing [iu]samplerBuffer types in GLSL 1.40.

Eric Anholt eric at anholt.net
Fri Mar 30 09:00:05 PDT 2012


On Thu, 29 Mar 2012 18:20:43 -0700, Ian Romanick <idr at freedesktop.org> wrote:
> On 03/29/2012 02:59 PM, Eric Anholt wrote:
> > The samplerBuffer type will be undefined in !glsl 1.40, and the
> > keyword is marked as reserved.  The [iu]samplerBuffer types are not
> > marked as reserved pre-1.40, so they don't have separate tokens and
> > fall through to normal type handling.
> 
> My recollection of GLSL namespace rules is failing.  If these are only 
> caught by the symbol table, will that allow things like
> 
> 	int isamplerBufer;

Good point, while GLSL 1.30 didn't have the 2 new ones marked as
reserved, GLSL 1.40 has all 3 marked served, so I need to handle them
with other reserved keyword stuff.  I think there are other new keywords
to reserve, too.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120330/9e7596dc/attachment.pgp>


More information about the mesa-dev mailing list