Skip to content

WasmGPU.geometry

Summary

WasmGPU.geometry is the geometry factory facade. It creates custom vertex/index geometry and built-in primitives, curves, and surfaces; the returned Geometry objects can be reused by one or more meshes and follow their own reference-counted lifetime.

Canonical documentation namepaths use geometry.* for directly traversable factories and geometry#* for members of a returned geometry instance.

Syntax

const geometry = wgpu.geometry.box(1, 1, 1);

Available APIs

See Also