perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / arb_cull_distance / clip-cull-1.shader_test
blob8b94f7858a3a861456d5a670452ac7fa651dda92
1 # Use a clip and cull distances. Always accept.
3 [require]
4 GLSL >= 1.30
5 GL_ARB_cull_distance
7 [vertex shader]
8 #version 130
9 #extension GL_ARB_cull_distance: enable
11 out float gl_CullDistance[1];
12 out float gl_ClipDistance[1];
14 void main(void)
16         gl_Position = gl_Vertex;
18         gl_CullDistance[0] = 5.0;
19         gl_ClipDistance[0] = 5.0;
22 [fragment shader]
23 #version 130
25 void main(void)
27         gl_FragColor = vec4(0, 0, 1, 1);
30 [test]
31 clear color 0.0 1.0 0.0 1.0
32 clear
33 enable GL_CLIP_PLANE0
34 draw rect -1 -1 2 2
36 # All blue, nothing clipped or culled
37 probe all rgba 0.0 0.0 1.0 1.0