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

# device

The device object that created the fence.

## Declaration

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

## Discussion

Discussion Only the device that created the fence can use it.

## See Also

### Identifying a fence

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