<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShaders",
  "identifier" : "/documentation/MetalPerformanceShaders/MPSPurgeableState/nonVolatile",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:@E@MPSPurgeableState@MPSPurgeableStateNonVolatile"
  },
  "title" : "MPSPurgeableState.nonVolatile"
}
-->

# MPSPurgeableState.nonVolatile

The contents of the resource aren’t allowed to be discarded.

```
case nonVolatile
```

## Overview

Use this option to mark the resource as non-volatile so the system doesn’t discard it. This is equivalent to <doc://com.apple.documentation/documentation/Metal/MTLPurgeableState/nonVolatile>.

---

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)