---
title: MTLDeviceError
framework: Metal
role: symbol
role_heading: Structure
platforms: [iOS 26.4+, iPadOS 26.4+, Mac Catalyst 26.4+, macOS 26.4+, tvOS 26.4+, visionOS 26.4+]
path: metal/mtldeviceerror-swift.struct
---

# MTLDeviceError

## Declaration

```swift
struct MTLDeviceError
```

## Topics

### Type Properties

- [errorDomain](metal/mtldeviceerror-swift.struct/errordomain.md)
- [none](metal/mtldeviceerror-swift.struct/none.md)
- [notSupported](metal/mtldeviceerror-swift.struct/notsupported.md)

### Enumerations

- [MTLDeviceError.Code](metal/mtldeviceerror-swift.struct/code.md)

## Relationships

### Conforms To

- [CustomNSError](foundation/customnserror.md)
- [Equatable](swift/equatable.md)
- [Error](swift/error.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
