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