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

# makeTextureResource(descriptor:)

Creates a texture resource from the given descriptor.

## Declaration

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

## See Also

### Creating resources

- [makeBufferResource(descriptor:)](realitykit/lowlevelrendercontext/makebufferresource(descriptor:).md)
- [makeMaterialResource(descriptor:)](realitykit/lowlevelrendercontext/makematerialresource(descriptor:)-8hizx.md)
- [makeMaterialResource(descriptor:)](realitykit/lowlevelrendercontext/makematerialresource(descriptor:)-9nufj.md)
