<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelRenderContext/makeTextureResource(descriptor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer21LowLevelRenderContextP19makeTextureResource10descriptorAA0deiJ0CAG10DescriptorV_tKF"
  },
  "title" : "makeTextureResource(descriptor:)"
}
-->

# makeTextureResource(descriptor:)

Creates a texture resource from the given descriptor.

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

## Parameters

`descriptor`

The texture type, pixel format, dimensions, and usage flags.

## Return Value

A newly created [`LowLevelTextureResource`](/documentation/RealityKit/LowLevelTextureResource).

## Discussion> Throws: An error if the descriptor is invalid or if the underlying GPU allocation fails.

---

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)