<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelDeviceResource/init(texture:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation22LowLevelDeviceResourceC7textureACSo10MTLTexture_p_tcfc"
  },
  "title" : "init(texture:)"
}
-->

# init(texture:)

Creates a new [`LowLevelDeviceResource`](/documentation/RealityKit/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.

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

## Parameters

`texture`

The underlying texture for this memory resource.

---

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)