Enumeration

MTLPurgeableState

The purgeable state of the resource.

Declaration

typedef enum MTLPurgeableState : NSUInteger {
    ...
} MTLPurgeableState;

Topics

Specifying Purgeable States

MTLPurgeableStateKeepCurrent

The current state is queried but doesn't change.

MTLPurgeableStateNonVolatile

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

MTLPurgeableStateVolatile

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

MTLPurgeableStateEmpty

The contents of the resource are or will be discarded.

See Also

Setting the Purgeable State of the Resource

- setPurgeableState:

Specifies or queries the resource’s purgeable state.

Required.