Message info
To:Ian Romanick From:Eric Anholt Subject:Re: [Mesa-dev] [PATCH] glsl: Add support for parsing [iu]samplerBuffer types in GLSL 1.40. Date:Fri, 30 Mar 2012 09:00:05 -0700

On Thu, 29 Mar 2012 18:20:43 -0700, Ian Romanick <> 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.