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-main-return.shader_test
blob
944cc098e5a320a8bb9500471c35fe7dfa397c0f
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
void main()
6
{
7
gl_Position = gl_Vertex;
8
}
9
10
[fragment shader]
11
uniform int early;
12
13
void main()
14
{
15
gl_FragColor = vec4(0.0, 1.0, 0.0, 0.0);
16
if (early != 0) /* always true */
17
return;
18
gl_FragColor = vec4(1.0, 0.0, 0.0, 0.0);
19
}
20
21
[test]
22
uniform int early 1
23
draw rect -1 -1 2 2
24
probe all rgba 0.0 1.0 0.0 0.0