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

# device

Obtains a reference to the GPU device this pool belongs to.

## Declaration

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