Capítulo 415 de 859

Chapter 415: FunctionCallNode

Core Idea

This module represents the call of a FunctionNode. Developers are usually not confronted with this module since they use the predefined TSL syntax wgslFn and glslFn which encapsulate this logic.

Key Concepts

  • functionNode : FunctionNode: The function node.
  • parameters : Object.<string, Node>: The parameters of the function call.

Reference Tables

Constructor

Signature
new FunctionCallNode( functionNode : FunctionNode, parameters : Object.<string, Node> )

Properties

PropertyDescription
.functionNode : FunctionNodeThe function node.
.parameters : Object.<string, Node>The parameters of the function call.

Methods

MethodDescription
.generateNodeType( builder : NodeBuilder ) : stringReturns the type of this function call node.
.getMemberType( builder : NodeBuilder, name : string ) : stringReturns the function node of this function call node.
.getParameters() : Object.<string, Node>Returns the parameters of the function call node.
.setParameters( parameters : Object.<string, Node> ) : FunctionCallNodeSets the parameters of the function call node.

Key Takeaways

  1. FunctionCallNode extends: EventDispatcher → Node → TempNode
  2. Most relevant properties: functionNode, parameters.
  3. Key methods: generateNodeType, getMemberType, getParameters, setParameters.

Connects To