makeIntersectionFunction(descriptor:completionHandler:)
Asynchronously creates an object representing a ray-tracing intersection function, using the specified descriptor.
Declaration
func makeIntersectionFunction(descriptor: MTLIntersectionFunctionDescriptor, completionHandler: @escaping @Sendable ((any MTLFunction)?, (any Error)?) -> Void)func makeIntersectionFunction(descriptor: MTLIntersectionFunctionDescriptor) async throws -> any MTLFunction