Implement atomic counter offset semantics.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@27760 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich 2014-08-19 06:08:38 +00:00
parent aa657c117e
commit d78ca6297d
10 changed files with 207 additions and 66 deletions

View file

@ -966,8 +966,7 @@ single_declaration
: fully_specified_type {
$$.type = $1;
$$.intermNode = 0;
if ($$.type.qualifier.hasLayout())
parseContext.warn($1.loc, "useless application of layout qualifier", "layout", "");
parseContext.declareTypeDefaults($$.loc, $$.type);
}
| fully_specified_type IDENTIFIER {
$$.type = $1;