THREE.JS / WEBGPU — BATCH MESH
One batch. Many shapes.
The source example packs mixed geometries into BatchedMesh, updates a moving subset, and switches between renderer-side sorting policies.
Initializing batch contract—
Preparing mixed geometry capacity and renderer.
Study issue
- instances
- —
- geometries
- —
- dynamic
- —
- opacity
- —
- sort/cull
- —
- sample avg/p95
- —
Contract: native WebGPU keeps the source-shaped Inspector as an explicit ?inspector=1 opt-in when timestamp-query is available, packs cone/box/sphere geometry, mutates a bounded dynamic subset, and exposes opacity, culling, built-in sorting, and radixSort policy. The official 20,000-instance scale and whole-example fidelity remain separate.
Pinned source: official WebGPU Batch Mesh example.