<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelBufferResource/Descriptor-swift.struct/init(capacity:sizeMultiple:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer22LowLevelBufferResourceC10DescriptorV8capacity12sizeMultipleAESi_Sitcfc"
  },
  "title" : "init(capacity:sizeMultiple:)"
}
-->

# init(capacity:sizeMultiple:)

Creates a buffer descriptor with the given capacity and size alignment.

```
init(capacity: Int, sizeMultiple: Int = 16)
```

## Parameters

`capacity`

The capacity of the buffer, in bytes.

`sizeMultiple`

The required alignment of the buffer’s size, in bytes. Defaults to `16`.

---

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)