FunctionOverloadingNode

Last modified: Jun 30, 2024

This class allows to define multiple overloaded versions of the same function. Depending on the parameters of the function call, the node picks the best-fit overloaded version.

Constructor

new FunctionOverloadingNode(functionNodes?, ...parametersNodes)
ParameterTypeDefault Value
functionNodes?Array<Function>[]
parametersNodes...Array<Node>

Constructs a new function overloading node.

AccessorType

Properties

PropertyTypeDefault Value
functionNodesArray<Function>
parametersNodesArray<Node>
_candidateFnShaderCallNodeInternal
MethodType

Extends

Node

overloadingFn

TSL function for creating a function overloading node.

ParameterTypeDefault Value
functionNodesArray<Function>

Returns

FunctionOverloadingNode