<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ModelIO",
  "identifier" : "/documentation/ModelIO/MDLMeshBufferZone/capacity",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(pl)MDLMeshBufferZone(py)capacity"
  },
  "title" : "capacity"
}
-->

# capacity

The data capacity of the zone, in bytes.

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

## Discussion

You specify the capacity of a zone when creating it with the [`newZone(_:)`](/documentation/ModelIO/MDLMeshBufferAllocator/newZone(_:)) method of a concrete class implementing the [`MDLMeshBufferAllocator`](/documentation/ModelIO/MDLMeshBufferAllocator) protocol.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)