THREE.JS / FOUNDATIONS 342
Index the window.
Three indexed indirect records select three six-index windows from one index buffer. Each command changes firstIndex while baseVertex stays zero.
Initializing first-index probe—
Creating one 18-index buffer and three five-word commands.
The probe is waiting for indexed command writes.
- commands
- —
- byte offsets
- —
- GPU words
- —
- regions
- —
- index window
- —
- readbacks
- —
Native indexed commands are indexCount, instanceCount, firstIndex, baseVertex, firstInstance. Here firstIndex counts index elements inside one shared buffer; indirect record offsets remain byte offsets 0 / 20 / 40. Base vertices stay 0 / 0 / 0.
Indexed indirect draws are WebGPU-only here.WebGL2 is classified as not equivalent; no CPU fallback is run.
Indexed first-index initialization failed.
The WebGPU probe could not initialize.
This route follows the official BufferGeometry.setIndirect(), IndirectStorageBufferAttribute, Renderer, TSL, and WebGPU indexed indirect layout.
LAB 342 / INDEXED FIRST-INDEX CONTRACT