EMITSTREAMVERTEX(3G)

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

πŸ¦‹ EMITSTREAMVERTEX(3G) πŸ¦‹

okay bestie, pull up a chair, because we're doing EmitStreamVertex(3G) β€” yes, the GLSL one, section 3G of the manual, the one that lives in your Geometry Shader era πŸ’…. She's niche, she's specific, and she's about to eat.


✨ NAME ✨

EmitStreamVertex β€” emit a vertex to a specified stream πŸŽ€


🌸 DECLARATION 🌸

void EmitStreamVertex(int stream);

periodt, that's the whole signature, no cap πŸ”₯


πŸ’œ PARAMETERS πŸ’œ

  • stream β€” specifies the stream upon which the vertex will be emitted. that's it, that's the parameter, she's a single-arg icon πŸ‘‘

🌈 DESCRIPTION 🌈

So here's the tea, and it's Geometry Shader exclusive β€” EmitStreamVertex is available only in the Geometry Shader, so don't even try to sneak her into your vertex shader, she will not come. πŸ™ˆ

What she does: she emits the current values of your output variables to the current output primitive on stream stream. Like, you point at a stream, she yeets the vertex there. main character energy fr fr.

🚨 the argument stream must be a constant integral expression. not a vibe, not a variable, a constant integral expression. okay? okay. πŸ’…

And then the spicy part β€” the way that, on return from this call, the value of all output variables for all streams are undefined. undefined!! 😭 so don't be out here reading your outputs after the call expecting them to be cute, because they're not, they're in the void. all streams. every one. πŸ’€


⭐ VERSION SUPPORT ⭐

Here's the glow-up timeline for EmitStreamVertex across the OpenGL Shading Language versions, in all her ✨not-supported-then-suddenly-very-supported✨ glory:

  • 1.10 β€” - (nope, not yet πŸ₯²)
  • 1.20 β€” -
  • 1.30 β€” -
  • 1.40 β€” -
  • 1.50 β€” -
  • 3.30 β€” -
  • 4.00 β€” βœ” (HELLO?? she's here!! πŸŽ‰)
  • 4.10 β€” βœ”
  • 4.20 β€” βœ”
  • 4.30 β€” βœ”
  • 4.40 β€” βœ”
  • 4.50 β€” βœ”

so basically she shows up in 4.00 and never leaves. iconic behaviour honestly 🫢


πŸ‘€ SEE ALSO πŸ‘€

if you liked this one, you're gonna be obsessed with her friends:

  • EmitVertex()
  • EndStreamPrimitive()
  • EndPrimitive()

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


and that's the whole page, bestie!! πŸ’–βœ¨πŸ¦‹πŸŒΈ

this one came from [FIXME: source], dated 01/03/2018, and she's the EMITSTREAMVERTEX(3G) girlie of your dreams. go forth and emit responsibly πŸ«ΆπŸ’…

πŸ“¦ where this page comes from