perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / glsl-1.10 / execution / glsl-fs-post-increment-01.shader_test
blob0748787167aa5084ff38a357f586cb678f69bec0
1 [require]
2 # Once gl_Vertex is changed to piglit_vertex, this test will work with
3 # GLSL ES 1.00 as well.
4 GLSL >= 1.10
6 [vertex shader]
7 #ifdef GL_ES
8 precision mediump float;
9 #endif
11 void main()
13         gl_Position = gl_Vertex;
16 [fragment shader]
17 #ifdef GL_ES
18 precision mediump float;
19 #endif
21 void a()
23         gl_FragColor.y = 0.5;
26 void main()
28         gl_FragColor.xzy = vec3(0.0);
29         a();
30         gl_FragColor.x = gl_FragColor.y++;
33 [test]
34 clear color 0.5 0.5 0.5 0.5
35 clear
36 draw rect -1 -1 2 2
37 probe rgb 15 15 0.5 1.0 0.0