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
ext_gpu_shader4: add compiler tests for everything
[piglit.git]
/
tests
/
spec
/
glsl-1.10
/
execution
/
fs-saturate-exp2.shader_test
blob
03c1f5e2044f495f236bde0629956ea246b38957
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 v;
12
13
void main()
14
{
15
gl_FragColor = 0.25 + clamp(exp2(v), 0.0, 1.0) * 0.5;
16
}
17
18
[test]
19
uniform vec4 v -2 -1 1 2
20
21
draw rect -1 -1 2 2
22
probe all rgba 0.375 0.5 0.75 0.75