<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLCommandBufferError-swift.struct/pageFault",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "s:SC21MTLCommandBufferErrorLeV9pageFaultSoAAVvpZ"
  },
  "title" : "pageFault"
}
-->

# pageFault

An error code that indicates the command buffer generated a page fault the GPU can’t service.

```
static var pageFault: MTLCommandBufferError.Code { get }
```

## Discussion

The underlying cause may be a buffer read/write attribute mismatch or an out-of-boundary access.

---

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)