---
title: device
framework: metalperformanceshaders
role: symbol
role_heading: Instance Property
path: metalperformanceshaders/mpsmatrix/device
---

# device

The device on which the matrix will be used.

## Declaration

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

## See Also

### Properties

- [rows](metalperformanceshaders/mpsmatrix/rows.md)
- [columns](metalperformanceshaders/mpsmatrix/columns.md)
- [dataType](metalperformanceshaders/mpsmatrix/datatype.md)
- [rowBytes](metalperformanceshaders/mpsmatrix/rowbytes.md)
- [data](metalperformanceshaders/mpsmatrix/data.md)
- [matrices](metalperformanceshaders/mpsmatrix/matrices.md)
- [matrixBytes](metalperformanceshaders/mpsmatrix/matrixbytes.md)
