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
glsl-1.10: move loop shader tests to glsl-1.10 dir
[piglit.git]
/
tests
/
spec
/
glsl-1.10
/
execution
/
loops
/
glsl-vs-loop-continue.shader_test
blob
b78db6246b4d6835456139c1054d601f81d9a968
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
varying vec4 color;
6
void main()
7
{
8
gl_Position = gl_Vertex;
9
10
for (int i = 0; i < 8; i++) {
11
if (i > 4) {
12
color = vec4(0.0, 1.0, 0.0, 0.0);
13
continue;
14
}
15
color = vec4(1.0, 0.0, 0.0, 0.0);
16
}
17
}
18
19
[fragment shader]
20
varying vec4 color;
21
void main()
22
{
23
gl_FragColor = color;
24
}
25
26
[test]
27
draw rect -1 -1 2 2
28
relative probe rgb (0.03, 0.25) (0.0, 1.0, 0.0)