Add several tests for vertex shader attributes

This commit is contained in:
Ian Romanick 2010-03-29 17:19:13 -07:00
parent fb9f5b0675
commit 8901eeefc9
11 changed files with 79 additions and 0 deletions

7
tests/attribute-01.glsl Normal file
View File

@ -0,0 +1,7 @@
/* FAIL - attribute cannot have type int */
attribute int i;
void main()
{
gl_Position = vec4(1.0);
}

7
tests/attribute-02.glsl Normal file
View File

@ -0,0 +1,7 @@
/* FAIL - attribute cannot have type ivec2 */
attribute ivec2 i;
void main()
{
gl_Position = vec4(1.0);
}

7
tests/attribute-03.glsl Normal file
View File

@ -0,0 +1,7 @@
/* FAIL - attribute cannot have type ivec3 */
attribute ivec3 i;
void main()
{
gl_Position = vec4(1.0);
}

7
tests/attribute-04.glsl Normal file
View File

@ -0,0 +1,7 @@
/* FAIL - attribute cannot have type ivec4 */
attribute ivec4 i;
void main()
{
gl_Position = vec4(1.0);
}

7
tests/attribute-05.glsl Normal file
View File

@ -0,0 +1,7 @@
/* FAIL - attribute cannot have type bool */
attribute bool i;
void main()
{
gl_Position = vec4(1.0);
}

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

@ -0,0 +1,7 @@
/* FAIL - attribute cannot have type bvec2 */
attribute bvec2 i;
void main()
{
gl_Position = vec4(1.0);
}

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

@ -0,0 +1,7 @@
/* FAIL - attribute cannot have type bvec3 */
attribute bvec3 i;
void main()
{
gl_Position = vec4(1.0);
}

7
tests/attribute-08.glsl Normal file
View File

@ -0,0 +1,7 @@
/* FAIL - attribute cannot have type bvec4 */
attribute bvec4 i;
void main()
{
gl_Position = vec4(1.0);
}

7
tests/attribute-09.glsl Normal file
View File

@ -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);
}

8
tests/attribute-10.glsl Normal file
View File

@ -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);
}

8
tests/attribute-11.glsl Normal file
View File

@ -0,0 +1,8 @@
#version 130
/* PASS */
attribute vec4 i[10];
void main()
{
gl_Position = vec4(1.0);
}