Contents

makeLibrary(stitchedDescriptor:)

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

Declaration

func makeLibrary(stitchedDescriptor descriptor: MTLStitchedLibraryDescriptor) throws -> any MTLLibrary

Parameters

Return Value

A new MTLLibrary instance if the method completes successfully; otherwise Swift throws an error and Objective-C returns nil.

See Also

Creating shader libraries