Instance Method

setPurgeableState:

Set (or query) the purgeable state of the image’s underlying texture.

Declaration

- (MPSPurgeableState)setPurgeableState:(MPSPurgeableState)state;

Parameters

state

The desired purgeable state of the image’s underlying texture.

Return Value

Returns the prior purgeable state of the image’s underlying texture.

Discussion

This method behaves the same as the setPurgeableState: method of the MTLResource class, except that the state might be MPSPurgeableStateAllocationDeferred, which means there is no underlying texture to mark as volatile or non-volatile. Attempts to set a purgeable state on MTLTexture objects that have not yet been allocated will be ignored.

See Also

Methods

MPSPurgeableState

The purgeable state of an image’s underlying texture.