---
title: "makeMeshResource(descriptor:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/lowlevelrendercontext/makemeshresource(descriptor:)"
---

# makeMeshResource(descriptor:)

Creates a mesh resource from the given descriptor.

## Declaration

```swift
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.

## See Also

### Creating meshes

- [makeMeshPart(resource:indexOffset:indexCount:primitive:windingOrder:bounds:)](realitykit/lowlevelrendercontext/makemeshpart(resource:indexoffset:indexcount:primitive:windingorder:bounds:).md)
- [makeMeshInstance(meshPart:pipeline:geometryArguments:surfaceArguments:lightingArguments:transform:sortCategory:)](realitykit/lowlevelrendercontext/makemeshinstance(meshpart:pipeline:geometryarguments:surfacearguments:lightingarguments:transform:sortcategory:).md)
- [makeMeshInstanceArray(renderTargets:count:)](realitykit/lowlevelrendercontext/makemeshinstancearray(rendertargets:count:).md)
- [makeInstanceTransformResource(instanceCapacity:)](realitykit/lowlevelrendercontext/makeinstancetransformresource(instancecapacity:).md)
