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-swizzle-swizzle-rhs.shader_test
blob
6931b81265dcaf757a1c6f4e8d4d0285cb027fd4
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
void main()
6
{
7
vec4 color = vec4(1.0, 0.0, 0.0, 0.0);
8
gl_FrontColor = color.yzx.xzxx;
9
gl_Position = gl_Vertex;
10
}
11
12
[fragment shader]
13
void main()
14
{
15
gl_FragColor = gl_Color;
16
}
17
18
[test]
19
draw rect -1 -1 2 2
20
probe rgb 1 1 0.0 1.0 0.0