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