Compatibility and limits
three version, WebGPU requirements, supported grid types, WGSL size budgets and known divergences.
three
@pmndrs/vdb/three supports three >=0.187.0 <0.188.0 (r187) and needs WebGPURenderer on the WebGPU backend.
VDBGridNode relies on three's backend internals, so it checks them: another three revision warns once, and the first
node on a backend self-tests the disposal guard (VDB_ENGINE_MISMATCH if it fails). Core and tools have no three
dependency.
WebGPU
- The pool needs a core (non-compatibility)
GPUDevicewith at least one storage buffer per shader stage, a storage-buffer binding limit of at least the pool's minimum, and a device that is not lost.VDBGridPool.unsupportedReason(device)says which. - Request the device with
VDBGridPool.requiredLimits(adapter)(maxStorageBufferBindingSizeandmaxBufferSizeof the adapter). The pool never grows past the device's storage-buffer binding size, andVDB_POOL_LIMITis the error when it would. - A kernel uses one storage binding for the pool, at a slot you choose. No textures or samplers are required by the core. The dense frame-renderer source and the pyramid use 3D textures.
- CI runs the WebGPU paths on SwiftShader; hardware checks run on Chrome with an Apple GPU. Timings recorded so far are provisional (D25).
Grids
WGSL size budgets
Budgets per profile and type set are in the WGSL module. CI runs pnpm wgsl:size and
fails a generated module that grows past its budget.
Known divergences
Where this package does something differently from emcfarlane's pnanovdb.wgsl, OpenVDB, NanoVDB, or mjurczyk's
renderer, the difference and its reason are listed in
DIVERGES.md. Read it before comparing images or bytes against
another implementation.
Stability
- 0.x: a minor release may break; the changelog lists every break with what to do. Each entry point's export list is frozen by a snapshot test, so nothing leaves or joins the public API by accident.
- Experimental: the network data of
multipleScattering: 'neural'/'mlp'(VDBFrameMlp,VDBFrameMlpLayer,frameRenderer.mlp). The modes and their default weights are supported; the data shape may change before 1.0. - Not public: anything imported from a path under
dist/(dist/core/internal.jsand friends). Those are test oracles and A/B settings and change without notice.
Not in 0.2
VDBGridNodewith themajorantprofile (VDB_BAD_OPTION): the profile is for raw WGSL hosts (vdbModuleWgsl, see the WGSL module).- A Babylon.js adapter.