makeDynamicLibrary(url:)
Creates a Metal dynamic library instance that contains the functions in the Metal library file at a URL.
Declaration
func makeDynamicLibrary(url: URL) throws -> any MTLDynamicLibraryParameters
- url:
A URL to a Metal library file (ending in
.metallib).
Mentioned in
Return Value
A new MTLDynamicLibrary instance if the method completes successfully; otherwise Swift throws an error and Objective-C returns nil.