makeDynamicLibrary(library:)
Creates a Metal dynamic library instance from a Metal library instance.
Declaration
func makeDynamicLibrary(library: any MTLLibrary) throws -> any MTLDynamicLibraryParameters
- library:
An Mtllibrary instance.
Return Value
A new MTLDynamicLibrary instance if the method completes successfully; otherwise Swift throws an error and Objective-C returns nil.