Creates a library object containing the functions in a Metal library file at a specified path.
- iOS 8.0+
- macOS 10.11+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
The full file path to a
An error object that describes the problem, or
nil if the operation succeeded.
A new library object that contains the functions that were compiled into the
Creating Shader Libraries
Creates a library object containing the functions in the app’s default Metal library.
Creates a library object containing the functions stored in a binary data object created from a precompiled Metal library.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software