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
perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git]
/
tests
/
spec
/
glsl-1.10
/
execution
/
loops
/
glsl-fs-unroll-out-param.shader_test
blob
6bbc650c8198b184f8af4dec971e66dced5091c1
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
void main()
6
{
7
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
8
}
9
10
[fragment shader]
11
void foo(out int i)
12
{
13
gl_FragColor -= vec4(0.1);
14
i = 10;
15
}
16
17
void main()
18
{
19
gl_FragColor = vec4(1.0);
20
for (int i = 0; i < 7; i++) {
21
foo(i);
22
}
23
}
24
25
[test]
26
clear color 0.0 0.0 0.0 0.0
27
clear
28
draw rect -1 -1 2 2
29
probe rgb 15 15 0.9 0.9 0.9
30