repo.or.cz
/
piglit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git]
/
tests
/
spec
/
glsl-1.10
/
execution
/
fs-min-min-min.shader_test
blob
35ddeb9c5f247b8fb83e05e9fafeb74e0cf42a42
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader passthrough]
5
6
[fragment shader]
7
8
uniform float u;
9
uniform float u2;
10
11
void main()
12
{
13
float a = u;
14
float b = u2;
15
16
a = min(a, 0.35);
17
b = min(b, 0.35);
18
19
float c = min(a, b);
20
21
gl_FragColor = vec4(0.0, c, 0.0, 1.0);
22
}
23
24
[test]
25
clear color 0.2 0.2 0.2 0.2
26
clear
27
28
uniform float u 0.75
29
uniform float u2 0.75
30
31
draw rect -1 -1 2 2
32
probe all rgba 0.0 0.35 0.0 1.0