Lets say I want to render a bunch of triangle strips (or any other primitive) using an index buffer with a restart index.
Is there anyway in the shader to determine which vertex number is currently being rendered from the perspective of when the primitive was started? For example I might want to know that I'm rendering the third vertex of a quad.




