ENDPRIMITIVE(3G)

πŸ“¦
version 1.0~svn33624 Β· 4 versions
, in ubuntu jammy, ubuntu noble

πŸ’… 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 Β© 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 Β© 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