perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / glsl-1.10 / execution / fs-min-min-min.shader_test
blob35ddeb9c5f247b8fb83e05e9fafeb74e0cf42a42
1 [require]
2 GLSL >= 1.10
4 [vertex shader passthrough]
6 [fragment shader]
8 uniform float u;
9 uniform float u2;
11 void main()
13   float a = u;
14   float b = u2;
16   a = min(a, 0.35);
17   b = min(b, 0.35);
19   float c = min(a, b);
21   gl_FragColor = vec4(0.0, c, 0.0, 1.0);
24 [test]
25 clear color 0.2 0.2 0.2 0.2
26 clear
28 uniform float u 0.75
29 uniform float u2 0.75
31 draw rect -1 -1 2 2
32 probe all rgba 0.0 0.35 0.0 1.0