Contents

subscript(dynamicMember:)

Returns a new shader function representing the stitchable MSL function in the library called name.

Declaration

subscript(dynamicMember name: String) -> ShaderFunction { get }

Overview

Typically this subscript is used implicitly via the dynamic member syntax, for example:

let fn = ShaderLibrary.default.myFunction

which creates a reference to the MSL function called myFunction().