|
|
@@ -112,11 +112,11 @@ class BufferGeometry extends EventDispatcher {
|
|
|
this.indirect = null;
|
|
|
|
|
|
/**
|
|
|
- * The offset, in bytes, into the indirect drawing buffer where the value data begins.
|
|
|
+ * The offset, in bytes, into the indirect drawing buffer where the value data begins. If an array is provided, multiple indirect draw calls will be made for each offset.
|
|
|
*
|
|
|
* Can only be used with {@link WebGPURenderer} and a WebGPU backend.
|
|
|
*
|
|
|
- * @type {number}
|
|
|
+ * @type {number|Array<number>}
|
|
|
* @default 0
|
|
|
*/
|
|
|
this.indirectOffset = 0;
|
|
|
@@ -234,7 +234,7 @@ class BufferGeometry extends EventDispatcher {
|
|
|
* Sets the given indirect attribute to this geometry.
|
|
|
*
|
|
|
* @param {BufferAttribute} indirect - The attribute holding indirect draw calls.
|
|
|
- * @param {number} [indirectOffset=0] - The offset, in bytes, into the indirect drawing buffer where the value data begins.
|
|
|
+ * @param {number|Array<number>} [indirectOffset=0] - The offset, in bytes, into the indirect drawing buffer where the value data begins. If an array is provided, multiple indirect draw calls will be made for each offset.
|
|
|
* @return {BufferGeometry} A reference to this instance.
|
|
|
*/
|
|
|
setIndirect( indirect, indirectOffset = 0 ) {
|