File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -494,8 +494,8 @@ class Node extends EventDispatcher {
494
494
495
495
/**
496
496
* Represents the setup stage which is the first step of the build process, see {@link Node#build} method.
497
- * This method is often overwritten in derived modules to prepare the node which is used as the output/result.
498
- * The output node must be returned in the `return` statement.
497
+ * This method is often overwritten in derived modules to prepare the node which is used as a node's output/result.
498
+ * If an output node is prepared, then it must be returned in the `return` statement of the derived module's setup function .
499
499
*
500
500
* @param {NodeBuilder } builder - The current node builder.
501
501
* @return {?Node } The output node.
Original file line number Diff line number Diff line change @@ -2748,7 +2748,7 @@ class NodeBuilder {
2748
2748
2749
2749
}
2750
2750
2751
- // setup() -> stage 1: create possible new nodes and returns an output reference node
2751
+ // setup() -> stage 1: create possible new nodes and/or return an output reference node
2752
2752
// analyze() -> stage 2: analyze nodes to possible optimization and validation
2753
2753
// generate() -> stage 3: generate shader
2754
2754
You can’t perform that action at this time.
0 commit comments