Add redeclarations of built-in blocks.
Note: lots of test results changed due to listing the members of a block when printing types. git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23682 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
94fdd1117b
commit
ab41fe5df6
44 changed files with 528 additions and 324 deletions
|
|
@ -761,15 +761,15 @@ declaration
|
|||
$$ = 0;
|
||||
}
|
||||
| block_structure SEMICOLON {
|
||||
parseContext.addBlock($1.loc, *$1.typeList);
|
||||
parseContext.declareBlock($1.loc, *$1.typeList);
|
||||
$$ = 0;
|
||||
}
|
||||
| block_structure IDENTIFIER SEMICOLON {
|
||||
parseContext.addBlock($1.loc, *$1.typeList, $2.string);
|
||||
parseContext.declareBlock($1.loc, *$1.typeList, $2.string);
|
||||
$$ = 0;
|
||||
}
|
||||
| block_structure IDENTIFIER array_specifier SEMICOLON {
|
||||
parseContext.addBlock($1.loc, *$1.typeList, $2.string, $3.arraySizes);
|
||||
parseContext.declareBlock($1.loc, *$1.typeList, $2.string, $3.arraySizes);
|
||||
$$ = 0;
|
||||
}
|
||||
| type_qualifier SEMICOLON {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue