<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLDevice/makeSharedTexture(handle:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLDevice(im)newSharedTextureWithHandle:"
  },
  "title" : "makeSharedTexture(handle:)"
}
-->

# makeSharedTexture(handle:)

Creates a texture that references a shared texture.

```
func makeSharedTexture(handle sharedHandle: MTLSharedTextureHandle) -> (any MTLTexture)?
```

## Parameters

`sharedHandle`

An [`MTLSharedTextureHandle`](/documentation/Metal/MTLSharedTextureHandle) instance, typically from another process using the same GPU device.

## Return Value

A new [`MTLTexture`](/documentation/Metal/MTLTexture) instance if the method completed successfully; otherwise `nil`.

## Discussion

Call this method from the same [`MTLDevice`](/documentation/Metal/MTLDevice) instance that created the shared texture instance.

> Tip:
> You can identify the correct device with the texture handle’s ``doc://com.apple.metal/documentation/Metal/MTLSharedTextureHandle/device`` property.

---

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)