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-const-incr.shader_test
blob
3ebea35925dff6bb50eda83ee53e2df9696a4327
1
[require]
2
GL >= 2.0
3
GLSL >= 1.10
4
5
[vertex shader file]
6
glsl-mvp.vert
7
8
[fragment shader]
9
uniform vec4 color;
10
void main()
11
{
12
int count = int(color.w);
13
vec3 c = color.xyz;
14
int i;
15
16
for (i = 0; i < 10; i++) {
17
c.x += 0.1;
18
}
19
20
gl_FragColor = vec4(c, 1.0);
21
}
22
23
[test]
24
ortho
25
clear color 0.5 0.5 0.5 0.5
26
clear
27
draw rect 10 10 10 10
28
draw rect 30 10 10 10
29
probe rgb 15 15 1.0 0.0 0.0
30
probe rgb 35 15 1.0 0.0 0.0