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
|
|
@ -4,3 +4,29 @@ void main()
|
|||
{
|
||||
gl_ViewportIndex = 7;
|
||||
}
|
||||
|
||||
in gl_PerVertex {
|
||||
float gl_PointSize;
|
||||
} myIn[]; // ERROR, can't redeclare a different name
|
||||
|
||||
in gl_PerVertex {
|
||||
float gl_PointSize;
|
||||
} gl_myIn[]; // ERROR, can't redeclare a different name
|
||||
|
||||
in gl_PerVertex {
|
||||
float gl_PointSize;
|
||||
} gl_in[];
|
||||
|
||||
in gl_PerVertex {
|
||||
float gl_PointSize;
|
||||
} gl_in[]; // ERROR, can't do it again
|
||||
|
||||
out gl_PerVertex {
|
||||
float gl_PointSize;
|
||||
};
|
||||
|
||||
void foo()
|
||||
{
|
||||
float p = gl_in[1].gl_PointSize; // use of redeclared
|
||||
gl_PointSize = p; // use of redeclared
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue