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

# device

The device object that created the event.

## Declaration

```swift
var device: (any MTLDevice)? { get }
```

## See Also

### Identifying the event

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