gl_PrimitiveID

contains the index of the current primitive

Signature

gl_PrimitiveID( )->