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+
- 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.