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-02.shader_test
blob
61c3bb7c3f9821e51f4bd0c98a430d994b1ae1e5
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 < 10; i++) {
15
g += 0.2;
16
j++;
17
18
if (j > 2)
19
break;
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