---
title: "makeMeshResource(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/makemeshresource(descriptor:)"
---

# makeMeshResource(descriptor:)

Creates a mesh resource from the given descriptor.

## Declaration

```swift
final func makeMeshResource(descriptor: LowLevelMeshResource.Descriptor) throws -> LowLevelMeshResource
```

## Parameters

- `descriptor`: The vertex and index buffer layout to allocate.

## Return Value

Return Value A newly created LowLevelMeshResource.

## Discussion

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