Instance Property

resourceOptions

The options for resources created by the heap.

Required.

Declaration

var resourceOptions: MTLResourceOptions { get }

Discussion

The value of this property aggregates the values of storageMode, cpuCacheMode, and hazardTrackingMode.

See Also

Querying Heap Properties

var type: MTLHeapType

The heap's type.

Required.

var storageMode: MTLStorageMode

The heap's storage mode.

Required.

var cpuCacheMode: MTLCPUCacheMode

The heap's CPU cache mode.

Required.

var hazardTrackingMode: MTLHazardTrackingMode

The heap's hazard tracking mode.

Required.

var size: Int

The total size of the heap, in bytes.

Required.

var usedSize: Int

The size of all resources currently in the heap, in bytes.

Required.

var currentAllocatedSize: Int

The size, in bytes, of the current heap allocation.

Required.

func maxAvailableSize(alignment: Int) -> Int

The maximum size of a resource, in bytes, that can be currently allocated from the heap.

Required.

enum MTLHeapType

The options you use to choose the heap type.