---
title: MTLCaptureError
framework: metal
role: symbol
role_heading: Enumeration
path: metal/mtlcaptureerror
---

# MTLCaptureError

Errors returned by capture sessions.

## Declaration

```swift
enum MTLCaptureError
```

## Topics

### Errors

- [MTLCaptureError.alreadyCapturing](metal/mtlcaptureerror/alreadycapturing.md)
- [MTLCaptureError.invalidDescriptor](metal/mtlcaptureerror/invaliddescriptor.md)
- [MTLCaptureError.notSupported](metal/mtlcaptureerror/notsupported.md)

### Initializers

- [init(rawValue:)](metal/mtlcaptureerror/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Capture errors

- [MTLCaptureErrorDomain](metal/mtlcaptureerrordomain.md)
