diff options
author | Eric Anholt <eric@anholt.net> | 2010-07-12 13:55:51 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-07-12 14:04:13 -0700 |
commit | 76e69b08d962331777c7a81462de2c983bc6868e (patch) | |
tree | 9d652d5a9d6dec021dda34a27d8a12f5ac84b86c /tests/shaders/glsl-fs-uniform-array-1.shader_test | |
parent | 7e1508dbd9113f3338309c886386843139d779f3 (diff) |
glsl-{vs,fs}-uniform-array-*: New tests for using uniform arrays.
They're used by Savage2, yet nothing but glsl-uniform-out-of-bounds
were using them, and that test doesn't do rendering.
Diffstat (limited to 'tests/shaders/glsl-fs-uniform-array-1.shader_test')
-rw-r--r-- | tests/shaders/glsl-fs-uniform-array-1.shader_test | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/shaders/glsl-fs-uniform-array-1.shader_test b/tests/shaders/glsl-fs-uniform-array-1.shader_test new file mode 100644 index 000000000..35fae4733 --- /dev/null +++ b/tests/shaders/glsl-fs-uniform-array-1.shader_test @@ -0,0 +1,24 @@ +[require] +GL >= 2.0 +GLSL >= 1.10 + +[vertex shader] +void main() +{ + gl_Position = gl_Vertex; +} + +[fragment shader] +uniform vec4 arg[4]; +void main() +{ + gl_FragColor = arg[1]; +} + +[test] +uniform vec4 arg[0] 1.0 0.0 0.0 0.0 +uniform vec4 arg[1] 0.0 1.0 0.0 0.0 +uniform vec4 arg[2] 0.0 0.0 1.0 0.0 +uniform vec4 arg[3] 1.0 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe rgb 1 1 0.0 1.0 0.0 |