OSDN Git Service

glsl: Add support for parsing [iu]samplerBuffer types in GLSL 1.40.
authorEric Anholt <eric@anholt.net>
Mon, 26 Mar 2012 21:13:17 +0000 (14:13 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 9 Apr 2012 21:34:06 +0000 (14:34 -0700)
commit659855252107debc47dbac8ec7985e1024d7ab5c
tree1d47bfaafb899e6e3de7018f7b2ffa6b58883f5f
parent6d0f5684c1aa1b3563af8ae3db35ff0916a7b922
glsl: Add support for parsing [iu]samplerBuffer types in GLSL 1.40.

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.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/glsl_parser.yy
src/glsl/glsl_types.cpp