<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelBufferSlice",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer19LowLevelBufferSliceV"
  },
  "title" : "LowLevelBufferSlice"
}
-->

# LowLevelBufferSlice

A reference to a sub-range of a buffer resource, used to bind a region of a buffer to an
argument table slot.

```
struct LowLevelBufferSlice
```

## Topics

### Creating a buffer slice

[`init(buffer: LowLevelBufferResource, offset: Int, size: Int) throws(LowLevelRenderContextError)`](/documentation/RealityKit/LowLevelBufferSlice/init(buffer:offset:size:))

Creates a slice referencing a sub-range of the given buffer.

### Accessing the buffer region

[`var buffer: LowLevelBufferResource`](/documentation/RealityKit/LowLevelBufferSlice/buffer)

The buffer this slice references.

[`var size: Int`](/documentation/RealityKit/LowLevelBufferSlice/size)

The size of this slice, in bytes.

### Adjusting the offset

[`func setOffset(Int) throws(LowLevelRenderContextError)`](/documentation/RealityKit/LowLevelBufferSlice/setOffset(_:))

Updates the byte offset of this slice.

### Instance Properties

[`var offset: Int`](/documentation/RealityKit/LowLevelBufferSlice/offset)

The byte offset into `buffer` at which this slice begins.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

---

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)