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.