Contents

subscript(dynamicMember:)

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

Declaration

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

Overview

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

let fn = ShaderLibrary.myFunction

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