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
/
glsl-vs-sign.shader_test
blob
1e328a456684b4339d660c2581a98f5cf48496b0
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
varying vec4 color;
6
uniform vec4 arg0;
7
void main()
8
{
9
gl_Position = gl_Vertex;
10
color = sign(arg0) + vec4(1.5, -0.5, 0.5, 0.5);
11
}
12
13
[fragment shader]
14
varying vec4 color;
15
16
void main()
17
{
18
gl_FragColor = color;
19
}
20
21
[test]
22
uniform vec4 arg0 -5.0 5.0 0.0 0.0
23
draw rect -1 -1 2 2
24
probe rgb 1 1 0.5 0.5 0.5 0.5