I've been reading this page today:
http://msdn.microsof...8(v=vs.85).aspx
It all seems very useful, however it's not quite what I need.
SV_VertexID refers to the actual value of the index in the index buffer you're iterating through, with say, DrawIndexed.
However, there doesn't seem to be a way to get the plain old 'which index am i on?' So when you're for example debugging in PIX and see a DrawIndexed call of 192k indices, there's no way inside the vertex shader to know if you're computing index 0 or 192k or 5 or 99, etc.
Does anybody know any way this is possible in HLSL? I'm kind of stunned it doesn't exist. There are many patterns where the value of the index could help you calculate something that would otherwise waste vertex format space.
Just to be super clear, I'm talking about getting the value of VTX rather than IDX in the below scenario:

Thanks.


















