Add some variable declaration qualifier tests

This commit is contained in:
Ian Romanick 2010-03-31 13:13:12 -07:00
parent d8065d86e8
commit d8a2133887
7 changed files with 27 additions and 0 deletions

3
tests/qualifier-01.glsl Normal file
View File

@ -0,0 +1,3 @@
#version 130
/* FAIL - inout only allowed in parameter list */
inout vec4 foo;

2
tests/qualifier-02.glsl Normal file
View File

@ -0,0 +1,2 @@
/* FAIL - in only allowed in parameter list in GLSL 1.10 */
in foo;

2
tests/qualifier-03.glsl Normal file
View File

@ -0,0 +1,2 @@
/* FAIL - out only allowed in parameter list in GLSL 1.10 */
out vec4 foo;

3
tests/qualifier-04.glsl Normal file
View File

@ -0,0 +1,3 @@
#version 130
/* PASS */
in vec4 foo;

3
tests/qualifier-05.glsl Normal file
View File

@ -0,0 +1,3 @@
#version 130
/* PASS */
out vec4 foo;

7
tests/qualifier-06.glsl Normal file
View File

@ -0,0 +1,7 @@
/* FAIL - in only allowed in parameter list in GLSL 1.10 */
void main()
{
in vec4 foo;
gl_Position = gl_Vertex;
}

7
tests/qualifier-07.glsl Normal file
View File

@ -0,0 +1,7 @@
/* FAIL - out only allowed in parameter list in GLSL 1.10 */
void main()
{
out vec4 foo;
gl_Position = gl_Vertex;
}