Contents

makeLibrary(stitchedDescriptor:completionHandler:)

Asynchronously creates a Metal library from the function stitching graphs in a descriptor.

Declaration

func makeLibrary(stitchedDescriptor descriptor: MTLStitchedLibraryDescriptor, completionHandler: @escaping  @Sendable ((any MTLLibrary)?, (any Error)?) -> Void)
func makeLibrary(stitchedDescriptor descriptor: MTLStitchedLibraryDescriptor) async throws -> any MTLLibrary

Parameters

  • descriptor:

    An Mtlstitchedlibrarydescriptor instance.

  • completionHandler:

    A Swift closure or Objective-C block the method calls when the library finishes loading.

See Also

Creating shader libraries