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-fs-swizzle-1.shader_test
blob
90d5bb4b2478b6ddb4a4dde4c3a4458c5039f054
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 color;
12
void main()
13
{
14
vec4 v = color * 0.5;
15
v = v.wzyx;
16
gl_FragColor = v;
17
}
18
19
[test]
20
uniform vec4 color 0.0 1.0 1.5 2.0
21
draw rect -1 -1 2 2
22
probe all rgba 1.0 0.75 0.5 0.0