makeLibrary(stitchedDescriptor:)
Synchronously creates a Metal library from the function stitching graphs in a descriptor.
Declaration
func makeLibrary(stitchedDescriptor descriptor: MTLStitchedLibraryDescriptor) throws -> any MTLLibraryParameters
- descriptor:
An Mtlstitchedlibrarydescriptor instance.
Return Value
A new MTLLibrary instance if the method completes successfully; otherwise Swift throws an error and Objective-C returns nil.