<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/GaussianSplatResource/BufferDescriptor/init(buffer:format:stride:offset:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation21GaussianSplatResourceC16BufferDescriptorV6buffer6format6stride6offsetAeA08LowLevelF0C_So18MTLAttributeFormatVS2itcfc"
  },
  "title" : "init(buffer:format:stride:offset:)"
}
-->

# init(buffer:format:stride:offset:)

Creates a descriptor that locates a property within a buffer.

```
init(buffer: LowLevelBuffer, format: MTLAttributeFormat, stride: Int, offset: Int)
```

## Parameters

`buffer`

The buffer that stores the property’s values.

`format`

The element format of each value in the buffer.

`stride`

The distance, in bytes, between consecutive splats’
values.

`offset`

The byte offset of the first splat’s value within the
buffer.

---

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)