GLSL Geometry Shader Question?
category: code [glöplog]
I'm trying to understand and use geometry shaders for a mesh generation problem with non-rendering purposes.
In a setup where the shader receives GL_TRIANGLES and emits GL_TRIANGLE_STRIP, I send all vertices three at a time with glBegin(GL_TRIANGLES). Shader correctly receives primitives three vertices at a time.
Can the vertices inside gl_PositionIn be sometimes in different orders than glVertex commands I execute on the host side or are they always FIFO?
In a setup where the shader receives GL_TRIANGLES and emits GL_TRIANGLE_STRIP, I send all vertices three at a time with glBegin(GL_TRIANGLES). Shader correctly receives primitives three vertices at a time.
Can the vertices inside gl_PositionIn be sometimes in different orders than glVertex commands I execute on the host side or are they always FIFO?
No. It's always in the call order.
i have a bug to fix then. thank you.