---
title: indexType
framework: metalkit
role: symbol
role_heading: Instance Property
path: metalkit/mtksubmesh/indextype
---

# indexType

The type of index data in the index buffer.

## Declaration

```swift
var indexType: MTLIndexType { get }
```

## Discussion

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

## See Also

### Properties used to Draw Indexed Primitives

- [indexBuffer](metalkit/mtksubmesh/indexbuffer.md)
- [indexCount](metalkit/mtksubmesh/indexcount.md)
- [primitiveType](metalkit/mtksubmesh/primitivetype.md)
