Instance Property

library

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

Declaration

var library: MTLLibrary? { get set }

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

var vertexFunctionName: String?

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

var fragmentFunctionName: String?

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