---
title: indexType
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlaccelerationstructuremotiontrianglegeometrydescriptor/indextype
---

# indexType

The data type of indices in the index buffer.

## Declaration

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

## Discussion

Discussion The index type needs to be MTLIndexType.uint16 or MTLIndexType.uint32. The default is MTLIndexType.uint32.

## See Also

### Specifying index data

- [indexBuffer](metal/mtlaccelerationstructuremotiontrianglegeometrydescriptor/indexbuffer.md)
- [indexBufferOffset](metal/mtlaccelerationstructuremotiontrianglegeometrydescriptor/indexbufferoffset.md)
