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

# init(sharedTextureHandle:)

Creates a new LowLevelDeviceResource from the specified Metal shared texture handle. Throws if an MTLTexture cannot be created from the specified handle.

## Declaration

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

## Parameters

- `sharedTextureHandle`: The underlying shared texture handle for this memory resource.

## Discussion

Discussion note: If a MTLTexture couldn’t be created from the specified handle.

## See Also

### Creating a device resource

- [init(textureDescriptor:iosurface:plane:)](realitykit/lowleveldeviceresource/init(texturedescriptor:iosurface:plane:).md)
