Enumeration

MTLCPUCacheMode

Options for the CPU cache mode that define the CPU mapping of the resource.

Declaration

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

Topics

Specifying the Cache Mode

MTLCPUCacheModeDefaultCache

The default CPU cache mode for the resource, which guarantees that read and write operations are executed in the expected order.

MTLCPUCacheModeWriteCombined

A write-combined CPU cache mode that is optimized for resources that the CPU writes into, but never reads.

See Also

Reading Memory and Storage Properties

cpuCacheMode

The CPU cache mode that defines the CPU mapping of the resource.

Required.

storageMode

The location and access permissions of the resource.

Required.

hazardTrackingMode

A mode that determines whether Metal tracks and synchronizes resource access.

Required.

resourceOptions

The storage mode, CPU cache mode, and hazard tracking mode of the resource.

Required.

MTLStorageMode

Options for the memory location and access permissions for a resource.

MTLHazardTrackingMode

The options you use to specify the hazard tracking mode.