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