Add some variable declaration qualifier tests
This commit is contained in:
parent
d8065d86e8
commit
d8a2133887
|
@ -0,0 +1,3 @@
|
|||
#version 130
|
||||
/* FAIL - inout only allowed in parameter list */
|
||||
inout vec4 foo;
|
|
@ -0,0 +1,2 @@
|
|||
/* FAIL - in only allowed in parameter list in GLSL 1.10 */
|
||||
in foo;
|
|
@ -0,0 +1,2 @@
|
|||
/* FAIL - out only allowed in parameter list in GLSL 1.10 */
|
||||
out vec4 foo;
|
|
@ -0,0 +1,3 @@
|
|||
#version 130
|
||||
/* PASS */
|
||||
in vec4 foo;
|
|
@ -0,0 +1,3 @@
|
|||
#version 130
|
||||
/* PASS */
|
||||
out vec4 foo;
|
|
@ -0,0 +1,7 @@
|
|||
/* FAIL - in only allowed in parameter list in GLSL 1.10 */
|
||||
void main()
|
||||
{
|
||||
in vec4 foo;
|
||||
|
||||
gl_Position = gl_Vertex;
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
/* FAIL - out only allowed in parameter list in GLSL 1.10 */
|
||||
void main()
|
||||
{
|
||||
out vec4 foo;
|
||||
|
||||
gl_Position = gl_Vertex;
|
||||
}
|
Loading…
Reference in New Issue