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

# init(sharedTextureHandle:)

Creates a new [`LowLevelDeviceResource`](/documentation/RealityKit/LowLevelDeviceResource) from the specified Metal shared texture handle.
Throws if an MTLTexture cannot be created from the specified handle.

```
init(sharedTextureHandle: MTLSharedTextureHandle) throws
```

## Parameters

`sharedTextureHandle`

The underlying shared texture handle for this memory resource.

## Discussion> Throws: If a MTLTexture couldn’t be created from the specified handle.

---

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)