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
ARB_ubo/referenced-by-shader: pass if shader compiler moves UBOs between shaders
[piglit.git]
/
tests
/
spec
/
arb_geometry_shader4
/
execution
/
generate-zero-primitives.shader_test
blob
773e99407fe4ba56a63e2c8f5ed8bee2e83cde44
1
[require]
2
GL >= 2.0
3
GLSL >= 1.10
4
GL_ARB_geometry_shader4
5
6
[vertex shader]
7
#version 110
8
9
attribute vec4 vertex;
10
11
void main()
12
{
13
gl_Position = vertex;
14
}
15
16
[geometry shader]
17
#version 110
18
#extension GL_ARB_geometry_shader4: enable
19
20
void main()
21
{
22
}
23
24
[geometry layout]
25
input type GL_TRIANGLES
26
output type GL_TRIANGLE_STRIP
27
vertices out 3
28
29
[fragment shader]
30
#version 110
31
32
void main()
33
{
34
gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
35
}
36
37
[vertex data]
38
vertex/float/2
39
-1.0 -1.0
40
1.0 -1.0
41
1.0 1.0
42
-1.0 1.0
43
44
[test]
45
clear color 0 0 0 0
46
clear
47
draw arrays GL_TRIANGLE_FAN 0 4
48
probe all rgb 0.0 0.0 0.0