Instance Property

resourceOptions

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

Declaration

@property(readwrite, nonatomic) MTLResourceOptions resourceOptions;

Discussion

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

type

The type of heap to create.

storageMode

The storage mode for the heap.

cpuCacheMode

The CPU cache mode for the heap.

hazardTrackingMode

The heap's hazard tracking mode.

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.