THREE.JS / FOUNDATIONS 339
Read the command.
A deterministic compute pass writes a five-u32 storage record. The native non-indexed draw consumes its first four words; the extra application field stays visible in the readback while a second readback proves the pixels it produced.
Initializing command probe—
Creating a WebGPU-only indirect command and its render consumer.
The probe is waiting for a GPU command write.
- command words
- —
- GPU command
- —
- visible cells
- —
- dispatches
- —
- readbacks
- —
- consumer
- —
The storage record is vertexCount, instanceCount, firstVertex, firstInstance, offset; native non-indexed drawIndirect() consumes the first four and the fifth is application data. This proves one indirect draw and its consumer; multi-draw offsets, indexed commands, and performance are separate boundaries.
Indirect storage is WebGPU-only here.WebGL2 is classified as not equivalent; no CPU fallback is run.
Indirect command initialization failed.
The WebGPU probe could not initialize.
This route follows the official IndirectStorageBufferAttribute, BufferGeometry.setIndirect(), TSL struct/storage, and the official structured draw example.
LAB 339 / INDIRECT COMMAND CONTRACT