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?
added on the 2010-08-01 13:45:39 by junjanes junjanes
No. It's always in the call order.
added on the 2010-08-01 14:56:25 by xernobyl xernobyl
i have a bug to fix then. thank you.
added on the 2010-08-01 19:26:09 by junjanes junjanes