← API Reference
@mapgpu/render-webgpu
WebGPU render engine with shader pipelines.
npm install @mapgpu/render-webgpu Exports
class
RenderEngine Main GPU render engine. Manages WebGPU device, shader pipelines, draw delegates, sprite atlas, and model manager. Lazy-initializes pipelines on first use.
class
RenderLoop requestAnimationFrame loop with frame timing, dirty checking, and FPS stats. Only renders when marked dirty.
class
SpriteAtlas Dynamic sprite atlas for icon symbols. Uses shelf-first-fit bin packing. Grows from 512x512 to 4096x4096 as icons are added.
class
ModelManager GLTF/GLB model GPU buffer cache. Parses GLB files, uploads vertex/index data, and manages instanced rendering buffers.