---
title: MTKMeshBufferAllocator
framework: metalkit
role: symbol
role_heading: Class
path: metalkit/mtkmeshbufferallocator
---

# MTKMeshBufferAllocator

An interface for allocating a MetalKit buffer that backs the vertex data of a Model I/O mesh, suitable for use in a Metal app.

## Declaration

```swift
class MTKMeshBufferAllocator
```

## Topics

### Initialization

- [init(device:)](metalkit/mtkmeshbufferallocator/init(device:).md)

### Device

- [device](metalkit/mtkmeshbufferallocator/device.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [MDLMeshBufferAllocator](modelio/mdlmeshbufferallocator.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Model Handling

- [MTKMesh](metalkit/mtkmesh.md)
- [MTKMeshBuffer](metalkit/mtkmeshbuffer.md)
- [MTKSubmesh](metalkit/mtksubmesh.md)
- [Conversion Functions](metalkit/conversion-functions.md)
- [Model Errors](metalkit/model-errors.md)
