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)| Parameter | Type | Default Value |
|---|---|---|
| functionNodes? | Array<Function> | [] |
| parametersNodes | ...Array<Node> | — |
Constructs a new function overloading node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| functionNodes | Array<Function> | — | |
| parametersNodes | Array<Node> | — | |
| _candidateFn | ShaderCallNodeInternal | — | |
| Method | Type | |
|---|---|---|
| generateNodeType | (builder: NodeBuilder) => string | |
| getCandidateFn | (builder: NodeBuilder) => FunctionNode | |
| setup | (builder: NodeBuilder) => Node | |
Extends
NodeTSL function for creating a function overloading node.
| Parameter | Type | Default Value |
|---|---|---|
| functionNodes | Array<Function> | — |
Returns
FunctionOverloadingNode