Add several tests for vertex shader attributes
This commit is contained in:
parent
fb9f5b0675
commit
8901eeefc9
|
@ -0,0 +1,7 @@
|
|||
/* FAIL - attribute cannot have type int */
|
||||
attribute int i;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(1.0);
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
/* FAIL - attribute cannot have type ivec2 */
|
||||
attribute ivec2 i;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(1.0);
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
/* FAIL - attribute cannot have type ivec3 */
|
||||
attribute ivec3 i;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(1.0);
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
/* FAIL - attribute cannot have type ivec4 */
|
||||
attribute ivec4 i;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(1.0);
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
/* FAIL - attribute cannot have type bool */
|
||||
attribute bool i;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(1.0);
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
/* FAIL - attribute cannot have type bvec2 */
|
||||
attribute bvec2 i;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(1.0);
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
/* FAIL - attribute cannot have type bvec3 */
|
||||
attribute bvec3 i;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(1.0);
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
/* FAIL - attribute cannot have type bvec4 */
|
||||
attribute bvec4 i;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(1.0);
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
/* FAIL - attribute cannot have array type in GLSL 1.10 */
|
||||
attribute vec4 i[10];
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(1.0);
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
#version 120
|
||||
/* FAIL - attribute cannot have array type in GLSL 1.20 */
|
||||
attribute vec4 i[10];
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(1.0);
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
#version 130
|
||||
/* PASS */
|
||||
attribute vec4 i[10];
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(1.0);
|
||||
}
|
Loading…
Reference in New Issue