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

# Metal enumerations

## Topics

### Enumerations

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

The error codes that Metal can raise when you create a tensor.

[`enum MTLArgumentBuffersTier`](/documentation/Metal/MTLArgumentBuffersTier)

The values that determine the limits and capabilities of argument buffers.

[`enum MTLLogStateError`](/documentation/Metal/MTLLogStateError)

[`enum MTLMathFloatingPointFunctions`](/documentation/Metal/MTLMathFloatingPointFunctions)

Indicates which FP32 math functions Metal uses.

[`enum MTLMathMode`](/documentation/Metal/MTLMathMode)

An indication of whether the compiler can perform optimizations for floating-point arithmetic that may violate the IEEE 754 standard.

[`enum MTLMatrixLayout`](/documentation/Metal/MTLMatrixLayout)

[`enum MTLReadWriteTextureTier`](/documentation/Metal/MTLReadWriteTextureTier)

The support level for read-write texture formats.

[`enum MTLShaderValidation`](/documentation/Metal/MTLShaderValidation)

Indicates whether shader validation in an enabled or disabled state, or neither state.

[`enum MTLTransformType`](/documentation/Metal/MTLTransformType)



---

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)