<!--
{
  "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" : "MetalPerformanceShaders",
  "identifier" : "/documentation/MetalPerformanceShaders/MPSPurgeableState",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:@E@MPSPurgeableState"
  },
  "title" : "MPSPurgeableState"
}
-->

# MPSPurgeableState

The purgeable state of an image’s underlying texture.

```
enum MPSPurgeableState
```

## Topics

### Constants

[`MPSPurgeableState.allocationDeferred`](/documentation/MetalPerformanceShaders/MPSPurgeableState/allocationDeferred)

The image’s underlying texture hasn’t been allocated yet. Attempts to set another purgeable state using the [`setPurgeableState(_:)`](/documentation/MetalPerformanceShaders/MPSImage/setPurgeableState(_:)) method will be ignored.

[`MPSPurgeableState.keepCurrent`](/documentation/MetalPerformanceShaders/MPSPurgeableState/keepCurrent)

The current state is queried but doesn’t change.

[`MPSPurgeableState.nonVolatile`](/documentation/MetalPerformanceShaders/MPSPurgeableState/nonVolatile)

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

[`MPSPurgeableState.volatile`](/documentation/MetalPerformanceShaders/MPSPurgeableState/volatile)

The system is allowed to discard the resource to free up memory.

[`MPSPurgeableState.empty`](/documentation/MetalPerformanceShaders/MPSPurgeableState/empty)

The contents of the resource are or will be discarded.



---

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)