<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalKit",
  "identifier" : "/documentation/MetalKit/MTKModelError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "MetalKit"
    ],
    "preciseIdentifier" : "c:@T@MTKModelError"
  },
  "title" : "MTKModelError"
}
-->

# MTKModelError

Constants used to declare Model Errors.

```
struct MTKModelError
```

## Topics

### Initializing a Raw Constant

[`init(rawValue:)`](/documentation/MetalKit/MTKModelError/init(rawValue:))

### Finding Model Error Constants

[`domain`](/documentation/MetalKit/MTKModelError/domain)

The error domain used by MetalKit when returning mesh initialization errors.

[`key`](/documentation/MetalKit/MTKModelError/key)

The key used to retrieve an error string from an error object’s <doc://com.apple.documentation/documentation/Foundation/NSError/userInfo> dictionary.



---

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)