Documentation Language: Swift

Initializer

init(variable:initExpression:)

Creates a new MTL variable binding.

init(variable: MTLVariable, initExpression: MTLExpression)

Parameters

variable

The variable to bind

initExpression

The expression that computes the variable’s value