---
title: allocator
framework: metalkit
role: symbol
role_heading: Instance Property
path: metalkit/mtkmeshbuffer/allocator
---

# allocator

The allocator object used to create this mesh buffer.

## Declaration

```swift
var allocator: MTKMeshBufferAllocator { get }
```

## Discussion

Discussion The allocator uses Model I/O for copy and re-layout operations, such as when a new vertex descriptor is applied to an existing vertex buffer.

## See Also

### Originating Objects

- [type](metalkit/mtkmeshbuffer/type.md)
