repo.or.cz
/
piglit
/
hramrach.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add more structure constructor tests.
[piglit/hramrach.git]
/
tests
/
shaders
/
glsl-fs-loop-two-counter-03.shader_test
blob
b4cd18fbd9f51c9aa0deba23f57405a0c0859287
1
[require]
2
GL >= 2.0
3
GLSL >= 1.10
4
5
[vertex shader file]
6
glsl-mvp.vert
7
8
[fragment shader]
9
void main()
10
{
11
int j = 0;
12
float g = 0.0;
13
14
for (int i = 0; i < 3; i++) {
15
if (j > 9)
16
break;
17
18
g += 0.2;
19
j++;
20
}
21
22
gl_FragColor = (j != 3) ? vec4(1.0, 0.0, 0.0, 0.0) : vec4(0.0, g, 0.0, 0.0);
23
}
24
25
[test]
26
clear color 0.3 0.3 0.3 0.0
27
clear
28
ortho
29
draw rect 10 10 10 10
30
probe rgb 15 15 0.0 0.6 0.0