1
0

FunctionCallNode.html.md 1.8 KB

Inheritance: EventDispatcher → Node → TempNode →

FunctionCallNode

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.

Constructor

new FunctionCallNode( functionNode : FunctionNode, parameters : Object. )

Constructs a new function call node.

functionNode

The function node.

Default is null.

parameters

The parameters for the function call.

Default is {}.

Properties

.functionNode : FunctionNode

The function node.

Default is null.

.parameters : Object.

The parameters of the function call.

Default is {}.

Methods

.getMemberType( builder : NodeBuilder, name : string ) : string

Returns the function node of this function call node.

builder

The current node builder.

name

The name of the member.

Overrides: TempNode#getMemberType

Returns: The type of the member.

.getNodeType( builder : NodeBuilder ) : string

Returns the type of this function call node.

builder

The current node builder.

Overrides: TempNode#getNodeType

Returns: The type of this node.

.getParameters() : Object.

Returns the parameters of the function call node.

Returns: The parameters of this node.

.setParameters( parameters : Object. ) : FunctionCallNode

Sets the parameters of the function call node.

parameters

The parameters to set.

Returns: A reference to this node.

Source

src/nodes/code/FunctionCallNode.js

粤ICP备19079148号