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
cl: Don't use device_infos if num_device_infos == 0
[piglit.git]
/
tests
/
shaders
/
glsl-fs-loop-nested.frag
blob
9a83166221dd31929e153539f12277263ce79a4f
1
uniform vec4 color;
2
3
void main()
4
{
5
int count = int(color.w);
6
int count1 = int(count / 4);
7
int count2 = count - count1 * 4;
8
vec3 c = color.xyz;
9
int i, j;
10
11
for (i = 0; i < count1; i++) {
12
for (j = 0; j < count2; j++) {
13
c = c.yzx;
14
}
15
}
16
17
gl_FragColor = vec4(c, 1.0);
18
}