Semantics: Geometry stage can support max_vertices = 0.
To do this, more generally use a named -1 as a not set value.
This commit is contained in:
parent
3c24a06c8c
commit
494a02a2b0
18 changed files with 93 additions and 36 deletions
12
Test/max_vertices_0.geom
Normal file
12
Test/max_vertices_0.geom
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#version 330
|
||||
|
||||
layout(points) in;
|
||||
layout(triangle_strip, max_vertices = 0) out;
|
||||
in highp vec4 v_geom_FragColor[];
|
||||
out highp vec4 v_frag_FragColor;
|
||||
|
||||
void main (void)
|
||||
{
|
||||
EndPrimitive();
|
||||
EndPrimitive();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue