Instance Property

size

The size of the heap, in bytes.

Declaration

@property(readwrite, nonatomic) NSUInteger size;

Discussion

The default value is 0.

You can use the heapBufferSizeAndAlignWithLength:options: and heapTextureSizeAndAlignWithDescriptor: methods to help you determine the correct size for the heap. Metal may round the size of the heap to a page boundary.

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.

resourceOptions

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

MTLHazardTrackingMode

The options you use to specify the hazard tracking mode.

MTLHeapType

The options you use to choose the heap type.