Skip to content

WasmGPU.gltf

Summary

WasmGPU.gltf is the engine's glTF loading, decoding, and import facade. It can load a document and its external resources, decode GLB containers and accessors, and import supported glTF content into WasmGPU scenes, meshes, materials, textures, cameras, lights, skins, and animations.

Syntax

const result = await wgpu.gltf.loadAndImport("scene.glb");

Available APIs

The package also exports standalone URI helpers such as resolveUri; they are not members of wgpu.gltf.

See Also