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
/
glsl-fs-functions-5.shader_test
blob
78f9fca382edcc2c931912db49549e40e08359a1
1
[require]
2
GL >= 2.0
3
GLSL >= 1.10
4
5
[vertex shader]
6
void main()
7
{
8
gl_Position = gl_Vertex;
9
}
10
11
[fragment shader]
12
float val = 0.0;
13
void sub() {
14
for (int i = 0; i < 3; ++i) {
15
if (i == 1)
16
return;
17
val = 0.5;
18
}
19
val = 1.0;
20
}
21
22
void main() {
23
sub();
24
gl_FragColor = vec4(val);
25
}
26
27
[test]
28
draw rect -1 -1 2 2
29
probe all rgb 0.5 0.5 0.5 0.5