📄 ParameterNode.js
¶
📊 Analysis Summary¶
Metric | Count |
---|---|
🔧 Functions | 3 |
🧱 Classes | 1 |
📦 Imports | 2 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 src/nodes/core/ParameterNode.js
📦 Imports¶
Name | Source |
---|---|
nodeObject |
../tsl/TSLBase.js |
PropertyNode |
./PropertyNode.js |
Functions¶
ParameterNode.getHash(): string
¶
Returns: string
ParameterNode.generate(): string
¶
Returns: string
parameter(type: string, name: string): ParameterNode
¶
Parameters:
type
string
name
string
Returns: ParameterNode
Calls:
nodeObject (from ../tsl/TSLBase.js)
Classes¶
ParameterNode
¶
Class Code
class ParameterNode extends PropertyNode {
static get type() {
return 'ParameterNode';
}
/**
* Constructs a new parameter node.
*
* @param {string} nodeType - The type of the node.
* @param {?string} [name=null] - The name of the parameter in the shader.
*/
constructor( nodeType, name = null ) {
super( nodeType, name );
/**
* This flag can be used for type testing.
*
* @type {boolean}
* @readonly
* @default true
*/
this.isParameterNode = true;
}
getHash() {
return this.uuid;
}
generate() {
return this.name;
}
}