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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software