melonJS
    Preparing search index...

    Variable WEBGPUConst

    WEBGPU: 3

    Require the WebGPU renderer. The backend covers the full rendering contract of the WebGL renderer — the 2D tier (sprites, text, primitives, blend modes, masks and clipping, patterns, ShaderEffect / post effects in WGSL, 2D lights and normal maps, frame captures, gradient fills, compressed textures, GPU tile layers) and the 3D tier (retained and accumulated meshes, lit and unlit, Camera3d, Light3d, glTF scenes and models, Sprite3d billboards).

    app.init() rejects when WebGPU is unavailable in the environment; like WEBGL it fails loudly rather than falling back, so a missing capability surfaces at startup. Use AUTO if fallback to WebGL / Canvas is acceptable — AUTO already prefers WebGPU when the browser can negotiate a device.