ENDPRIMITIVE(3G)
π
ENDPRIMITIVE β the 3G girlies' manual π
okay bestie, so this is a page from the 3G manual section (that's the GLSL/OpenGL shading language corner of the world, iykyk) and we're talking about EndPrimitive β¨ the little function whose whole job is: complete the current output primitive on the first vertex stream. that's it. that's the gig. she's an icon, she's a closer π
πΈ NAME πΈ
EndPrimitive β complete the current output primitive on the first vertex stream π
β¨ DECLARATION β¨
void EndPrimitive(void);
no args, no drama, no return value. she simply arrives and does the thing π«Ά
π DESCRIPTION π
so this one is only available in the Geometry Shader, okay? not everywhere. only there. periodt.
EndPrimitive completes the current output primitive on the first (and possibly only) vertex stream and then starts a brand new one. π¦
and the key tea: no vertex is emitted. like, none. zero. she is not out here emitting anything, she's just wrapping up the current vibe and opening a fresh one.
also, calling EndPrimitive is equivalent to calling EmitStreamVertex() with stream set to 0. so if you already know that one, congrats, you basically know this one π§
π VERSION SUPPORT π
which GLSL versions got her? let's go down the list, bestie (the original lists it as a table, but we're doing it as a cute lil rundown because tables are not the vibe here):
- OpenGL Shading Language 1.10 β
-π not yet - OpenGL Shading Language 1.20 β
-π not yet - OpenGL Shading Language 1.30 β
-π not yet - OpenGL Shading Language 1.40 β
-π not yet - OpenGL Shading Language 1.50 β β she's here!! π
- OpenGL Shading Language 3.30 β β π
- OpenGL Shading Language 4.00 β β π
- OpenGL Shading Language 4.10 β β π
- OpenGL Shading Language 4.20 β β π
- OpenGL Shading Language 4.30 β β π
- OpenGL Shading Language 4.40 β β π
- OpenGL Shading Language 4.50 β β π
so from 1.50 onward she's been showing up every single time. consistent queen πβ
π₯ SEE ALSO π₯
her besties, her group chat, her mutuals:
EmitVertex()EmitStreamVertex()EndStreamPrimitive()
go read those too, they're all connected, no cap π
π COPYRIGHT π
Copyright Β© 2011-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
π COPYRIGHT (yes, again) π
Copyright Β© 2011-2014 Khronos Group
lowkey obsessed with the fact that this page has two copyright sections. double the credit, double the slay π
and that's the whole page bestie!! π«Ά she's from the [FIXME: source], dated 01/03/2018, and she lives at ENDPRIMITIVE(3G). mwah, go close some primitives πβ¨πΈ
π¦ where this page comes from
- ubuntu jammy: opengl-4-man-doc 1.0~svn33624-1 Β· SGI-Free-Software-B-License-2
- ubuntu noble: opengl-4-man-doc 1.0~svn33624-1 Β· SGI-Free-Software-B-License-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms