---
title: device
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlsharedtexturehandle/device
---

# device

The device object that created the texture.

## Declaration

```swift
var device: any MTLDevice { get }
```

## Discussion

Discussion A texture is always associated with the MTLDevice that created it and can be used only with that device.

## See Also

### Identifying the shared texture handle

- [label](metal/mtlsharedtexturehandle/label.md)
