Creates a library object containing the functions in the app’s default Metal library.
- iOS 8.0+
- macOS 10.11+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
A new library object that contains the functions from the default library. This method returns
nil if the default library cannot be found.
.metal files in an Xcode project that builds an application are compiled and built into a single default library.
Creating Shader Libraries
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