Search Docs
Loading...
Skip to content

Type Alias: Device

type Device = "auto" | "cpu" | "gpu";

Render-/decode-/encode-device selector.

  • 'auto' — engine picks (default).
  • 'cpu' — software path (Skia raster on native, canvas2d on web).
  • 'gpu' — any available GPU backend (Metal on macOS, EGL on Linux, Direct3D 12 on Windows, WebGL2 in browser, no-op in WASM Node). The engine auto-selects the platform backend; there is no per-sub-backend selection.