Contents

heapAccelerationStructureSizeAndAlign(size:)

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

Declaration

func heapAccelerationStructureSizeAndAlign(size: Int) -> MTLSizeAndAlign

Parameters

  • size:

    The size of an acceleration structure, in bytes.

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