---
title: capacity
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/lowlevelbufferresource/descriptor-swift.struct/capacity
---

# capacity

The capacity of the buffer, in bytes.

## Declaration

```swift
var capacity: Int { get set }
```

## See Also

### Configuring the buffer size

- [sizeMultiple](realitykit/lowlevelbufferresource/descriptor-swift.struct/sizemultiple.md)
