---
title: maxBufferLength
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtldevice/maxbufferlength
---

# maxBufferLength

The largest amount of memory, in bytes, that a GPU device can allocate to a buffer instance.

## Declaration

```swift
var maxBufferLength: Int { get }
```

## Discussion

Discussion The property’s value is at least 256 MB (268,435,456 bytes).

## See Also

### Creating buffers

- [makeBuffer(length:options:)](metal/mtldevice/makebuffer(length:options:).md)
- [makeBuffer(bytes:length:options:)](metal/mtldevice/makebuffer(bytes:length:options:).md)
- [makeBuffer(bytesNoCopy:length:options:deallocator:)](metal/mtldevice/makebuffer(bytesnocopy:length:options:deallocator:).md)
