Instance Property

usedSize

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

Required.

Declaration

var usedSize: Int { get }

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 resourceOptions: MTLResourceOptions

The options for resources created by the heap.

Required.

var size: Int

The total size of 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.