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

# device

The Metal device that owns the residency set.

## Declaration

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

## Discussion

Discussion The device assigns itself to this property when you create a residency set with its makeResidencySet(descriptor:) method.

## See Also

### Inspecting a residency set

- [label](metal/mtlresidencyset/label.md)
- [containsAllocation(_:)](metal/mtlresidencyset/containsallocation(_:).md)
- [allAllocations](metal/mtlresidencyset/allallocations.md)
- [allocationCount](metal/mtlresidencyset/allocationcount.md)
- [allocatedSize](metal/mtlresidencyset/allocatedsize.md)
