Contents

storageModeManaged

The CPU and GPU may maintain separate copies of the resource, and any changes need to be explicitly synchronized.

Declaration

static var storageModeManaged: MTLResourceOptions { get }

Discussion

On Intel-based Mac computers, this is the default storage mode for MTLTexture objects. In iOS and tvOS, the managed storage mode isn’t available. With managed storage, you synchronize changes between the CPU and GPU manually. For instructions and examples of resource synchronization, see Synchronizing a managed resource in macOS.

For more guidance on how to choose storage modes, see Setting resource storage modes.

See Also

Specifying storage modes