Instance Property

storageMode

The storage mode for the heap.

Declaration

@property(readwrite, nonatomic) MTLStorageMode storageMode;

Discussion

The default value is MTLStorageModePrivate.

In iOS and tvOS, heaps can be created only with a MTLStorageModePrivate or MTLStorageModeShared storage mode. In macOS, heaps can be created only with a MTLStorageModePrivate storage mode.

Any resources you allocate on the heap have this storage mode.

See Also

Specifying Heap Attributes

type

The type of heap to create.

cpuCacheMode

The CPU cache mode for the heap.

hazardTrackingMode

The heap's hazard tracking mode.

resourceOptions

The options for all the resources you create on the heap.

size

The size of the heap, in bytes.

MTLHazardTrackingMode

The options you use to specify the hazard tracking mode.

MTLHeapType

The options you use to choose the heap type.