<!--
{
  "documentType" : "article",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/metal-structures",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Metal structures"
}
-->

# Metal structures

## Topics

### Structures

[`struct MTLTensorError`](/documentation/Metal/MTLTensorError-swift.struct)

[`struct MTLBinaryArchiveError`](/documentation/Metal/MTLBinaryArchiveError-swift.struct)

An error that occurred when creating a binary shader archive.

[`struct MTLCommandBufferError`](/documentation/Metal/MTLCommandBufferError-swift.struct)

The command buffer error codes that indicate why the GPU doesn’t finish executing a command buffer.

[`struct MTLComponentTransform`](/documentation/Metal/MTLComponentTransform)

[`struct MTLCounterSampleBufferError`](/documentation/Metal/MTLCounterSampleBufferError-swift.struct)

The error codes that indicate why a GPU driver can’t create a counter sample buffer.

[`struct MTLDynamicLibraryError`](/documentation/Metal/MTLDynamicLibraryError-swift.struct)

Errors when compiling dynamic libraries.

[`struct MTLIOError`](/documentation/Metal/MTLIOError-swift.struct)

The categories of errors for creating an input/output file handle.

[`struct MTLPackedFloatQuaternion`](/documentation/Metal/MTLPackedFloatQuaternion)

[`struct MTLStitchedLibraryOptions`](/documentation/Metal/MTLStitchedLibraryOptions)

[`struct NSDeviceCertification`](/documentation/Metal/NSDeviceCertification)

[`struct NSProcessPerformanceProfile`](/documentation/Metal/NSProcessPerformanceProfile)

A value describing the device’s performance profile.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)