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
/
vs-swizzle-swizzle-lhs-2.shader_test
blob
98b682b45c0bd57619c6d52d9a542018953d2a58
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
void main()
6
{
7
vec4 color = vec4(0.1, 0.2, 0.3, 0.4);
8
color.xy.x = 1.0;
9
gl_FrontColor = color;
10
gl_Position = gl_Vertex;
11
}
12
13
[fragment shader]
14
void main()
15
{
16
gl_FragColor = gl_Color;
17
}
18
19
[test]
20
draw rect -1 -1 2 2
21
probe rgba 1 1 1.0 0.2 0.3 0.4