Instance Property


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


var resourceOptions: MTLResourceOptions { get set }


The value of this property aggregates the values of storageMode, cpuCacheMode, and hazardTrackingMode. If you modify this property, the other properties are updated to reflect the changes, and vice versa.

See Also

Specifying Heap Attributes

var type: MTLHeapType

The type of heap to create.

var storageMode: MTLStorageMode

The storage mode for the heap.

var cpuCacheMode: MTLCPUCacheMode

The CPU cache mode for the heap.

var hazardTrackingMode: MTLHazardTrackingMode

The heap's hazard tracking mode.

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.