glsl-1.10: move a whole bunch shader tests to the glsl-1.10 dir
[piglit.git] / tests / shaders / glsl-fs-varying-array.shader_test
blobaa4455881ef47199222db501f8f5ccd26bbebfee
1 [require]
2 GLSL >= 1.20
4 [vertex shader]
5 varying vec4 values[4];
6 void main()
8         values[0] = vec4(0.2);
9         values[1] = vec4(0.4);
10         values[2] = vec4(0.6);
11         values[3] = vec4(0.7);
12         gl_Position = gl_Vertex;
15 [fragment shader]
16 uniform int index;
17 varying vec4 values[4];
18 void main()
20         gl_FragColor = values[index];
23 [test]
24 uniform int index 1
25 draw rect -1 -1 2 2
26 probe rgba 1 1 0.4 0.4 0.4 0.4