perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / glsl-1.10 / execution / glsl-fs-max-array-access-function.shader_test
blobf3d8201669b55e0c52cad8dc94d03692325e4422
1 [require]
2 GLSL >= 1.10
4 [vertex shader]
5 void main()
7         gl_Position = gl_Vertex;
10 [fragment shader]
11 uniform float a[3];
13 float func(float array[3])
15         return array[2];
18 void main()
20         gl_FragColor = vec4(func(a), vec3(1.0));
23 [test]
24 uniform float a[0] 0.25
25 uniform float a[1] 0.5
26 uniform float a[2] 0.75
27 draw rect -1 -1 2 2
28 probe all rgba 0.75 1.0 1.0 1.0