Buckets:
| /** | |
| * {@link NodeBuilder} is going to create instances of this class during the build process | |
| * of nodes. They represent user-defined, native shader code portions that are going to be | |
| * injected by the builder. A dictionary of node codes is maintained in {@link NodeBuilder#codes} | |
| * for this purpose. | |
| */ | |
| class NodeCode { | |
| /** | |
| * Constructs a new code node. | |
| * | |
| * @param {string} name - The name of the code. | |
| * @param {string} type - The node type. | |
| * @param {string} [code=''] - The native shader code. | |
| */ | |
| constructor( name, type, code = '' ) { | |
| /** | |
| * The name of the code. | |
| * | |
| * @type {string} | |
| */ | |
| this.name = name; | |
| /** | |
| * The node type. | |
| * | |
| * @type {string} | |
| */ | |
| this.type = type; | |
| /** | |
| * The native shader code. | |
| * | |
| * @type {string} | |
| * @default '' | |
| */ | |
| this.code = code; | |
| Object.defineProperty( this, 'isNodeCode', { value: true } ); | |
| } | |
| } | |
| export default NodeCode; | |
Xet Storage Details
- Size:
- 925 Bytes
- Xet hash:
- d5715adacf4f4ceeba80b695743abd9631065f86b9a36e6a3439609c38d4bd70
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.