---
title: "indexBuffer(asIndexType:)"
framework: modelio
role: symbol
role_heading: Instance Method
path: "modelio/mdlsubmesh/indexbuffer(asindextype:)"
---

# indexBuffer(asIndexType:)

## Declaration

```swift
func indexBuffer(asIndexType indexType: MDLIndexBitDepth) -> any MDLMeshBuffer
```

## See Also

### Working with a Submesh’s Index Buffer

- [indexBuffer](modelio/mdlsubmesh/indexbuffer.md)
- [indexCount](modelio/mdlsubmesh/indexcount.md)
- [indexType](modelio/mdlsubmesh/indextype.md)
- [geometryType](modelio/mdlsubmesh/geometrytype.md)
- [topology](modelio/mdlsubmesh/topology.md)
