THREE.JS / FOUNDATIONS 341
Index the command.
Three indexed indirect records reuse one six-index pattern. Each GPU command changes baseVertex so the same index data selects a different vertex block.
Initializing indexed probe—
Creating a shared index buffer and three five-word commands.
The probe is waiting for indexed command writes.
- commands
- —
- byte offsets
- —
- GPU words
- —
- regions
- —
- index type
- —
- readbacks
- —
Native indexed commands are indexCount, instanceCount, firstIndex, baseVertex, firstInstance. Here firstIndex is an index-element position while setIndirect() receives byte offsets 0 / 20 / 40. One six-index pattern is reused with base vertices 0 / 4 / 8; non-indexed commands, indexed multi-buffer orchestration, and performance remain separate.
Indexed indirect draws are WebGPU-only here.WebGL2 is classified as not equivalent; no CPU fallback is run.
Indexed indirect initialization failed.
The WebGPU probe could not initialize.
This route follows the official BufferGeometry.setIndirect(), IndirectStorageBufferAttribute, Renderer, TSL, and structured draw-indirect example.
LAB 341 / INDEXED INDIRECT CONTRACT