---
title: MPSDeviceProvider
framework: metalperformanceshaders
role: symbol
role_heading: Protocol
path: metalperformanceshaders/mpsdeviceprovider
---

# MPSDeviceProvider

An interface that enables the setting of a Metal device for unarchived objects.

## Declaration

```swift
protocol MPSDeviceProvider
```

## Topics

### Instance Methods

- [mpsMTLDevice()](metalperformanceshaders/mpsdeviceprovider/mpsmtldevice().md)

## Relationships

### Conforming Types

- [MPSKeyedUnarchiver](metalperformanceshaders/mpskeyedunarchiver.md)

## See Also

### Keyed Archivers

- [NSKeyedArchiver](foundation/nskeyedarchiver.md)
- [MPSKeyedUnarchiver](metalperformanceshaders/mpskeyedunarchiver.md)
