perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / glsl-1.10 / execution / glsl-fs-max-array-access-forward-declaration.shader_test
blob2f72e15566d8c8d9d03d15ad457ed6da92bee9e3
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 void main()
17         gl_FragColor = vec4(func(a), vec3(1.0));
20 float func(float array[3])
22         return array[2];
25 [test]
26 uniform float a[0] 0.25
27 uniform float a[1] 0.5
28 uniform float a[2] 0.75
29 draw rect -1 -1 2 2
30 probe all rgba 0.75 1.0 1.0 1.0