API

Function resizeEngine

  • Resize every surface attached to this engine (including the engine's own primary surface). For DOM-canvas surfaces, snaps the swapchain backing store to the current clientWidth × clientHeight × devicePixelRatio (capped by each surface's maxDevicePixelRatio). For OffscreenCanvas surfaces this is a no-op per surface — call setSurfaceSize on the specific surface instead, since an OffscreenCanvas has no layout.

    Parameters

    Returns void