Enumeration Case

MTLResourceStorageModePrivate

The resource can be accessed only by the GPU.

Declaration

MTLResourceStorageModePrivate = MTLStorageModePrivate    << MTLResourceStorageModeShift

Discussion

Resource coherency between the CPU and GPU is not necessary because the CPU can’t access the contents of the resource. Metal may apply additional optimizations to private resources that are not allowed on shared or managed resources.

For more guidance on how to choose storage modes, see Setting Resource Storage Modes.

See Also

Specifying Storage Modes

MTLResourceStorageModeShared

The resource is stored in system memory and is accessible to both the CPU and the GPU.

MTLResourceStorageModeManaged

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

MTLResourceStorageModeMemoryless

The resource’s contents can be accessed only by the GPU and only exist temporarily during a render pass.

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