mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 01:50:10 +01:00
Add several tests for vertex shader attributes
This commit is contained in:
parent
fb9f5b0675
commit
8901eeefc9
11 changed files with 79 additions and 0 deletions
7
tests/attribute-01.glsl
Normal file
7
tests/attribute-01.glsl
Normal 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
7
tests/attribute-02.glsl
Normal 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
7
tests/attribute-03.glsl
Normal 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
7
tests/attribute-04.glsl
Normal 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
7
tests/attribute-05.glsl
Normal 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
7
tests/attribute-06.glsl
Normal 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
7
tests/attribute-07.glsl
Normal 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
7
tests/attribute-08.glsl
Normal 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
7
tests/attribute-09.glsl
Normal 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
8
tests/attribute-10.glsl
Normal 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
8
tests/attribute-11.glsl
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#version 130
|
||||
/* PASS */
|
||||
attribute vec4 i[10];
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(1.0);
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue