Add some array declaration tests

This commit is contained in:
Ian Romanick 2010-03-30 16:56:22 -07:00
parent 2d816204c8
commit 84960f01cb
8 changed files with 19 additions and 0 deletions

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

@ -0,0 +1,3 @@
#version 120
/* FAIL - array size type must be int */
uniform vec4 [3.2] a;

3
tests/array-02.glsl Normal file
View File

@ -0,0 +1,3 @@
#version 120
/* FAIL - array size type must be scalar */
uniform vec4 [ivec4(3)] a;

3
tests/array-03.glsl Normal file
View File

@ -0,0 +1,3 @@
#version 120
/* PASS */
uniform vec4 [3] a;

2
tests/array-04.glsl Normal file
View File

@ -0,0 +1,2 @@
/* FAIL - array size type must be int */
uniform vec4 a[3.2];

2
tests/array-05.glsl Normal file
View File

@ -0,0 +1,2 @@
/* FAIL - array size type must be scalar */
uniform vec4 a[ivec4(3)];

2
tests/array-06.glsl Normal file
View File

@ -0,0 +1,2 @@
/* PASS */
uniform vec4 a[3];

2
tests/array-07.glsl Normal file
View File

@ -0,0 +1,2 @@
/* FAIL - array size must be > 0 */
uniform vec4 a[0];

2
tests/array-08.glsl Normal file
View File

@ -0,0 +1,2 @@
/* FAIL - array size must be > 0 */
uniform vec4 a[-1];