---
title: indexType
framework: modelio
role: symbol
role_heading: Instance Property
path: modelio/mdlsubmesh/indextype
---

# indexType

The data type for each element in the submesh’s index buffer.

## Declaration

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

## Discussion

Discussion For optimum performance, an index buffer should generally use the smallest possible data type to fit its number of indices.

## See Also

### Working with a Submesh’s Index Buffer

- [indexBuffer](modelio/mdlsubmesh/indexbuffer.md)
- [indexCount](modelio/mdlsubmesh/indexcount.md)
- [geometryType](modelio/mdlsubmesh/geometrytype.md)
- [topology](modelio/mdlsubmesh/topology.md)
- [indexBuffer(asIndexType:)](modelio/mdlsubmesh/indexbuffer(asindextype:).md)
