EMITSTREAMVERTEX(3G)
π¦ 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 π
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 (again, because she said it twice and honestly? valid) π
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
- 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