gl_VertexID

contains the index of the current vertex

Signature

gl_VertexID( )->