---
title: MDLIndexBitDepth
framework: modelio
role: symbol
role_heading: Enumeration
path: modelio/mdlindexbitdepth
---

# MDLIndexBitDepth

Options for the size of integer data in a submesh’s index buffer, used by the indexType property.

## Declaration

```swift
enum MDLIndexBitDepth
```

## Overview

Overview For optimum performance, an index buffer should generally use the smallest data type that fits the number of indices it contains.

## Topics

### Constants

- [MDLIndexBitDepth.invalid](modelio/mdlindexbitdepth/invalid.md)
- [MDLIndexBitDepth.uInt8](modelio/mdlindexbitdepth/uint8-swift.enum.case.md)
- [MDLIndexBitDepth.uInt16](modelio/mdlindexbitdepth/uint16-swift.enum.case.md)
- [MDLIndexBitDepth.uInt32](modelio/mdlindexbitdepth/uint32-swift.enum.case.md)

### Initializers

- [init(rawValue:)](modelio/mdlindexbitdepth/init(rawvalue:).md)

### Type Properties

- [uint16](modelio/mdlindexbitdepth/uint16-swift.type.property.md)
- [uint32](modelio/mdlindexbitdepth/uint32-swift.type.property.md)
- [uint8](modelio/mdlindexbitdepth/uint8-swift.type.property.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Constants

- [MDLGeometryType](modelio/mdlgeometrytype.md)
