Contents

heapAccelerationStructureSizeAndAlign(descriptor:)

Returns the size and alignment, in bytes, of an acceleration structure if you create it from a heap with a descriptor.

Declaration

func heapAccelerationStructureSizeAndAlign(descriptor: MTLAccelerationStructureDescriptor) -> MTLSizeAndAlign

Parameters

Return Value

An MTLSizeAndAlign instance.

Discussion

Use this method to help estimate an appropriate size for a new heap before you create it.

See Also

Working with resource heaps