---
title: indexCount
framework: metalkit
role: symbol
role_heading: Instance Property
path: metalkit/mtksubmesh/indexcount
---

# indexCount

The number of indices in the index buffer.

## Declaration

```swift
var indexCount: Int { get }
```

## Discussion

Discussion Use this value for the indexCount parameter in a call to drawIndexedPrimitives(type:indexCount:indexType:indexBuffer:indexBufferOffset:).

## See Also

### Properties used to Draw Indexed Primitives

- [indexBuffer](metalkit/mtksubmesh/indexbuffer.md)
- [indexType](metalkit/mtksubmesh/indextype.md)
- [primitiveType](metalkit/mtksubmesh/primitivetype.md)
