---
title: "makeTextureResource(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/maketextureresource(descriptor:)"
---

# makeTextureResource(descriptor:)

Creates a texture resource from the given descriptor.

## Declaration

```swift
final func makeTextureResource(descriptor: LowLevelTextureResource.Descriptor) throws -> LowLevelTextureResource
```

## Parameters

- `descriptor`: The texture type, pixel format, dimensions, and usage flags.

## Return Value

Return Value A newly created LowLevelTextureResource.

## Discussion

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