HRESULT DrawIndexedPrimitive( [in] D3DPRIMITIVETYPE Type, [in] INT BaseVertexIndex, [in] UINT MinIndex, [in] UINT NumVertices, [in] UINT StartIndex, [in] UINT PrimitiveCount );
MinIndex:这个是相对于VertexBuffer而言,它是指绘画中用到的VertexBuffer的起始位置。
NumVertices:它不是实际画的顶点数目,而是使用到的VertexBuffer区域大小,比如要画一个三角形,有可能NumVertices=4,说明中间有一个顶点没有用到如下图所示:
MinIndex和NumVertices决定了本次绘画时,用到的VertexBuffer 顶点区间。
StartIndex:它是对于IndexBuffer而言的,IndexBuffer使用的开始位置。
BaseVertexIndex:顶点缓存的第一个顶点索引的偏移位置,偏移是因为当多个顶点缓存合并成一块全局缓存中时每块都有一个基准的offset值,例如合并多个顶点缓存减少渲染batch数,提高性能,但是较少使用。
原文:http://www.cnblogs.com/zhangdongsheng/p/5385154.html