perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / glsl-1.10 / execution / glsl-fs-uniform-array-5.shader_test
blob1923ce87c96d1894e30841f6c09f88d469de3a16
1 [require]
2 GLSL >= 1.10
3 GL_MAX_FRAGMENT_UNIFORM_COMPONENTS >= 1024
5 [vertex shader]
6 void main()
8         gl_Position = gl_Vertex;
11 [fragment shader]
12 /* Test that we can access a statically indexed array element of a
13  * very large fragment shader uniform array.  Note that this array is
14  * much larger than the minimum MAX_FRAGMENT_UNIFORM_COMPONENTS, so a
15  * driver may just reject this shader.
16  */
17 uniform vec4 arg[1024];
18 void main()
20         gl_FragColor = arg[900];
23 [test]
24 uniform vec4 arg[900] 0.0 1.0 0.0 0.0
25 draw rect -1 -1 2 2
26 probe all rgba 0.0 1.0 0.0 0.0