@squareys/webdecks-sdk - v0.0.0
    Preparing search index...

    Class PresentationModule

    A loaded WebDecks engine module, driven through its stable, versioned C ABI (wdeck_sdk_*). PresentationModule.attach asserts the ABI version, forwards any host-device option, and installs the device-lifecycle hooks. The deck facade is PresentationModule.presentations.

    const wasm = await createPresentationsEngine();     // the host loads the Emscripten factory
    const engine = await PresentationModule.attach(wasm);
    const deck = await engine.presentations.create();
    const viewport = (await engine.createViewport(canvas)).start();

    Implements

    Index
    device: GpuDevice

    The engine's WebGPU device, adapter, queue, and readiness lifecycle.

    poisonDestroyed: boolean

    Whether destroyed wrappers are poisoned (see AttachOptions.poisonDestroyed).

    • Close the deck, detach every viewport, and restore the global device hooks.

      Returns void