Instance Property

storageMode

The storage mode for the heap.

Declaration

var storageMode: MTLStorageMode { get set }

Discussion

The default value is MTLStorageMode.private.

In iOS and tvOS, heaps can be created only with a MTLStorageMode.private or MTLStorageMode.shared storage mode. In macOS, heaps can be created only with a MTLStorageMode.private storage mode.

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

See Also

Specifying Heap Attributes

var type: MTLHeapType

The type of heap to create.

var cpuCacheMode: MTLCPUCacheMode

The CPU cache mode for the heap.

var hazardTrackingMode: MTLHazardTrackingMode

The heap's hazard tracking mode.

var resourceOptions: MTLResourceOptions

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

var size: Int

The size of the heap, in bytes.

enum MTLHazardTrackingMode

The options you use to specify the hazard tracking mode.

enum MTLHeapType

The options you use to choose the heap type.