public Result DrawIndexedPrimitive(PrimitiveType primitiveType, int baseVertexIndex, int minVertexIndex, int numVertices, int startIndex, int primCount) { BeginActivePass(); Result result = _device.DrawIndexedPrimitive(primitiveType, baseVertexIndex, minVertexIndex, numVertices, startIndex, primCount); #if DEBUG PerformanceMonitor.IncreaseCounter(DeviceCounters.DrawIndexedPrimitive); int indexCount; CalculateIndexCount(primitiveType, primCount, out indexCount); PerformanceMonitor.IncreaseCounter(DeviceCounters.IndicesDrawn, indexCount); PerformanceMonitor.IncreaseCounter(DeviceCounters.VerticesDrawn, numVertices); PerformanceMonitor.IncreaseCounter(DeviceCounters.PrimitivesDrawn, primCount); #endif return(result); }