ReadonlydeviceThe engine's WebGPU device, adapter, queue, and readiness lifecycle.
ReadonlypoisonWhether destroyed wrappers are poisoned (see AttachOptions.poisonDestroyed).
The document facade of this engine build.
StaticattachAttach the SDK to a loaded WebDocs engine module. Asserts the ABI version (a hard failure on mismatch — there is no downgrade), forwards a license token if given, shares a host device if given, and installs the device-lifecycle hooks.
Attach a live WebGPU view to a host canvas. The engine presents to it through the swapchain; resize and device-pixel-ratio are handled by the returned Viewport. A document must be open first.
Close the document, detach every viewport, and restore the global device hooks.
A loaded WebDocs engine module, driven through its stable, versioned C ABI (
wdoc_sdk_*). DocumentModule.attach is the single entry point: it asserts the ABI version, forwards any license token, shares a host device if given, and installs the device-lifecycle hooks. The document facade is DocumentModule.documents.