-
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e746e9
commit 9a74766
Showing
5 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
import Node from "./Node.js"; | ||
/** | ||
* {@link NodeBuilder} is going to create instances of this class during the build process | ||
* of nodes. They represent the final shader attributes that are going to be generated | ||
* by the builder. Arrays of node attributes is maintained in {@link NodeBuilder#attributes} | ||
* and {@link NodeBuilder#bufferAttributes} for this purpose. | ||
*/ | ||
declare class NodeAttribute { | ||
readonly isNodeAttribute: true; | ||
name: string; | ||
type: string | null; | ||
node: Node | null; | ||
/** | ||
* Constructs a new node attribute. | ||
* | ||
* @param {String} name - The name of the attribute. | ||
* @param {String} type - The type of the attribute. | ||
* @param {Node?} node - An optinal reference to the node. | ||
*/ | ||
constructor(name: string, type: string | null, node?: Node | null); | ||
} | ||
export default NodeAttribute; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
/** | ||
* {@link NodeBuilder} is going to create instances of this class during the build process | ||
* of nodes. They represent the final shader variables that are going to be generated | ||
* by the builder. A dictionary of node variables is maintained in {@link NodeBuilder#vars} for | ||
* this purpose. | ||
*/ | ||
declare class NodeVar { | ||
readonly isNodeVar: true; | ||
name: string; | ||
type: string | null; | ||
/** | ||
* Constructs a new node variable. | ||
* | ||
* @param {String} name - The name of the variable. | ||
* @param {String} type - The type of the variable. | ||
*/ | ||
constructor(name: string, type: string | null); | ||
} | ||
export default NodeVar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
import NodeVar from "./NodeVar.js"; | ||
/** | ||
* {@link NodeBuilder} is going to create instances of this class during the build process | ||
* of nodes. They represent the final shader varyings that are going to be generated | ||
* by the builder. An array of node varyings is maintained in {@link NodeBuilder#varyings} for | ||
* this purpose. | ||
* | ||
* @augments NodeVar | ||
*/ | ||
declare class NodeVarying extends NodeVar { | ||
needsInterpolation: boolean; | ||
readonly isNodeVarying: true; | ||
/** | ||
* Constructs a new node varying. | ||
* | ||
* @param {String} name - The name of the varying. | ||
* @param {String} type - The type of the varying. | ||
*/ | ||
constructor(name: string, type: string | null); | ||
} | ||
export default NodeVarying; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters