Instance Property

library

The Metal shader library containing shader functions to be used by this program.

Declaration

@property(nonatomic, retain) id<MTLLibrary> library;

Discussion

If this property’s value is nil (the default), SceneKit loads shader functions from the default Metal library. Change this value if you have compiled a separate .metallib file for the shader functions you wish to use.

See Also

Working With Metal Shaders

vertexFunctionName

The name of the vertex shader function to load from a Metal shader library.

fragmentFunctionName

The name of the fragment shader function to load from a Metal shader library.

Beta Software

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