Creates a library object asynchronously by compiling the functions stored in the specified source string.
- iOS 8.0+
- macOS 10.11+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
A set of options to influence the compilation of this source code. See
A block of code that is invoked when the library has completed loading.
The source may only import the Metal standard library. There is no search path to find other functions.
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