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-saturate-pow.shader_test
blob
9e6778b0ae0c9cd44a64f480b41cb70c1a867ba7
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
void main()
6
{
7
gl_Position = gl_Vertex;
8
}
9
10
[fragment shader]
11
uniform vec4 x;
12
uniform vec4 y;
13
14
void main()
15
{
16
gl_FragColor = 0.25 + clamp(pow(x, y), 0.0, 1.0) * 0.5;
17
}
18
19
[test]
20
uniform vec4 x 0.5 2.0 0.5 1.0
21
uniform vec4 y 2.0 0.5 -1.0 1.0
22
23
draw rect -1 -1 2 2
24
probe all rgba 0.375 0.75 0.75 0.75