---
title: "init(texture:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/lowleveldeviceresource/init(texture:)"
---

# init(texture:)

Creates a new LowLevelDeviceResource from the specified Metal texture. This is not available on visionOS; device resources on this platform must be initialized from a shared texture using init(sharedTextureHandle:) instead.

## Declaration

```swift
init(texture: any MTLTexture)
```

## Parameters

- `texture`: The underlying texture for this memory resource.
