Contents

makeAccelerationStructure(size:)

Creates a new acceleration structure with a specific size.

Declaration

func makeAccelerationStructure(size: Int) -> (any MTLAccelerationStructure)?

Parameters

  • size:

    The size of the new acceleration structure, in bytes.

Return Value

A new MTLAccelerationStructure instance if the method completed successfully; otherwise nil.

See Also

Creating acceleration structures for ray tracing