perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / glsl-1.10 / execution / glsl-fs-functions-6.shader_test
blobc6a2f22d8930e09001b5bd86cc9c3e7711bffce4
1 [require]
2 GL >= 2.0
3 GLSL >= 1.10
5 [vertex shader]
6 void main()
8         gl_Position = gl_Vertex;
11 [fragment shader]
12 float val = 0.0;
13 void sub() {
14         for (int i = 0; i < 3; ++i) {
15                 for (int j = 0; j < 3; ++j) {
16                         if (i == 1 && j == 1)
17                                 return;
18                         val = 0.5;
19                 }
20         }
21         val = 1.0;
24 void main() {
25         sub();
26         gl_FragColor = vec4(val);
29 [test]
30 draw rect -1 -1 2 2
31 probe all rgb 0.5 0.5 0.5 0.5