A collection of Metal shader functions.
- iOS 8.0+
- macOS 10.11+
- tvOS 9.0+
MTLLibrary object contains Metal shading language source code that is compiled during the app build process or at runtime from a text string.
Don’t implement this protocol yourself; instead, use the library creation methods provided by the
MTLDevice protocol. To create a
MTLLibrary from a pre-compiled Metal library binary, call one of these