---
title: MPSPurgeableState.volatile
framework: metalperformanceshaders
role: symbol
role_heading: Case
path: metalperformanceshaders/mpspurgeablestate/volatile
---

# MPSPurgeableState.volatile

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

## Declaration

```swift
case volatile
```

## Overview

Overview Use this value to indicate that a resource is volatile and, therefore, the system may purge the data if it needs to make more memory available. This value is equivalent to MTLPurgeableState.volatile.

## See Also

### Constants

- [MPSPurgeableState.allocationDeferred](metalperformanceshaders/mpspurgeablestate/allocationdeferred.md)
- [MPSPurgeableState.keepCurrent](metalperformanceshaders/mpspurgeablestate/keepcurrent.md)
- [MPSPurgeableState.nonVolatile](metalperformanceshaders/mpspurgeablestate/nonvolatile.md)
- [MPSPurgeableState.empty](metalperformanceshaders/mpspurgeablestate/empty.md)
