跳转到内容

captureFramePixels

此内容尚不支持你的语言。

captureFramePixels(module, width, height, advance?): Promise<FramePixels | null>

Defined in: render/framePixels.ts:49

The next completed frame, read from the engine.

advance runs one frame — a driver’s own step, or waiting a rAF under a live loop. Null when the build cannot capture, when the request is refused (a WebGPU surface configured without readback), or when the readback never lands.

ESEngineModule

number

number

() => void | Promise<void>

Promise<FramePixels | null>