---
title: "makeBufferResource(descriptor:)"
framework: RealityKit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "realitykit/lowlevelrendercontextstandalone/makebufferresource(descriptor:)"
---

# makeBufferResource(descriptor:)

Creates a GPU-managed buffer resource from the given descriptor.

## Declaration

```swift
final func makeBufferResource(descriptor: LowLevelBufferResource.Descriptor) throws -> LowLevelBufferResource
```

## Parameters

- `descriptor`: The capacity and alignment requirements for the buffer.

## Return Value

Return Value A newly created LowLevelBufferResource.

## Discussion

Discussion note: An error if the descriptor is invalid or if the underlying GPU allocation fails.
