diff options
author | Paul Berry <[email protected]> | 2012-08-02 08:17:55 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2012-12-06 12:13:21 -0800 |
commit | 534ec62152e70ed8f6467feaf07b2db2197e11b1 (patch) | |
tree | 9f93f3e9e50823ef55c3144f42d9c4fe06191222 /src/glsl/lower_output_reads.cpp | |
parent | 948e5dda67caa49fa9fc7cdc4649343eaf305b49 (diff) |
glsl: parse GLSL ES 3.00 keywords correctly.
GLSL ES 3.00 adds the following keywords over GLSL 1.00: uint,
uvec[2-4], matNxM, centroid, flat, smooth, various samplers, layout,
switch, default, and case.
Additionally, it reserves a large number of keywords, some of which
were already reserved in versions of desktop GL that Mesa supports,
some of which are new to Mesa.
A few of the reserved keywords in GLSL ES 3.00 are keywords that are
supported in all other versions of GLSL: attribute, varying,
sampler1D, sampler1DShador, sampler2DRect, and sampler2DRectShadow.
This patch updates the lexer to handle all of the new keywords
correctly when the language being parsed is GLSL 3.00 ES.
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Acked-by: Carl Worth <[email protected]>
Diffstat (limited to 'src/glsl/lower_output_reads.cpp')
0 files changed, 0 insertions, 0 deletions