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

# MTLPurgeableState

The purgeable state of the resource.

```
enum MTLPurgeableState
```

## Topics

### Specifying purgeable states

[`MTLPurgeableState.keepCurrent`](/documentation/Metal/MTLPurgeableState/keepCurrent)

The current state is queried but doesn’t change.

[`MTLPurgeableState.nonVolatile`](/documentation/Metal/MTLPurgeableState/nonVolatile)

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

[`MTLPurgeableState.volatile`](/documentation/Metal/MTLPurgeableState/volatile)

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

[`MTLPurgeableState.empty`](/documentation/Metal/MTLPurgeableState/empty)

A state that indicates to the system that it needs to consider
the contents of a resource as invalid, typically because you’re discarding it.



---

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)