perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / glsl-1.10 / execution / loops / glsl-fs-unroll-out-param.shader_test
blob6bbc650c8198b184f8af4dec971e66dced5091c1
1 [require]
2 GLSL >= 1.10
4 [vertex shader]
5 void main()
7         gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
10 [fragment shader]
11 void foo(out int i)
13         gl_FragColor -= vec4(0.1);
14         i = 10;
17 void main()
19         gl_FragColor = vec4(1.0);
20         for (int i = 0; i < 7; i++) {
21                 foo(i);
22         }
25 [test]
26 clear color 0.0 0.0 0.0 0.0
27 clear
28 draw rect -1 -1 2 2
29 probe rgb 15 15 0.9 0.9 0.9