---
title: MTLLibraryError
framework: metal
role: symbol
role_heading: Structure
path: metal/mtllibraryerror-swift.struct
---

# MTLLibraryError

Metal errors related to libraries.

## Declaration

```swift
struct MTLLibraryError
```

## Topics

### Errors

- [unsupported](metal/mtllibraryerror-swift.struct/unsupported.md)
- [internal](metal/mtllibraryerror-swift.struct/internal.md)
- [compileFailure](metal/mtllibraryerror-swift.struct/compilefailure.md)
- [compileWarning](metal/mtllibraryerror-swift.struct/compilewarning.md)
- [fileNotFound](metal/mtllibraryerror-swift.struct/filenotfound.md)
- [functionNotFound](metal/mtllibraryerror-swift.struct/functionnotfound.md)

### Error domain

- [errorDomain](metal/mtllibraryerror-swift.struct/errordomain.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)

## See Also

### Errors

- [MTLLibraryError.Code](metal/mtllibraryerror-swift.struct/code.md)
- [MTLLibraryErrorDomain](metal/mtllibraryerrordomain.md)
