Shader Model 4 HLSL provides a semantic for this, it's SV_VertexID. The id is generated by directx, you don't have to pass it in as part of ...
確定! 回上一頁