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
/
swizzled-writemask-indexing-nonconst.shader_test
blob
fa1f7df580e7268fa0058f4f69fc61d292d4dc59
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader passthrough]
5
6
[fragment shader]
7
uniform int zero;
8
void main() {
9
gl_FragColor = vec4(1, 0, 0, 1);
10
gl_FragColor.wzyx[zero + 2] = 1.0;
11
gl_FragColor.wzyx[zero + 3] = 0.0;
12
}
13
14
[test]
15
uniform int zero 0
16
draw rect -1 -1 2 2
17
probe all rgba 0 1 0 1