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) -> MTLSizeAndAlignParameters
- descriptor:
An Mtlaccelerationstructuredescriptor instance.
Return Value
An MTLSizeAndAlign instance.
Discussion
Use this method to help estimate an appropriate size for a new heap before you create it.