diff --git a/src/nodes/gpgpu/ComputeNode.js b/src/nodes/gpgpu/ComputeNode.js index ec64913b2e43e0..90207b064af677 100644 --- a/src/nodes/gpgpu/ComputeNode.js +++ b/src/nodes/gpgpu/ComputeNode.js @@ -57,6 +57,14 @@ class ComputeNode extends Node { */ this.workgroupSize = workgroupSize; + /** + * TODO + * + * @type {?BufferAttribute} + * @default null + */ + this.indirect = null; + /** * TODO * @@ -209,6 +217,31 @@ class ComputeNode extends Node { } + /** + * TODO + * + * @param {BufferAttribute} indirect - The attribute holding indirect workgroup values. + * @return {ComputeNode} A reference to this node. + */ + setIndirect( indirect ) { + + this.indirect = indirect; + + return this; + + } + + /** + * TODO + * + * @return {?BufferAttribute} The indirect attribute. Returns `null` if no indirect attribute is defined. + */ + getIndirect() { + + return this.indirect; + + } + } export default ComputeNode;