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.
Parameters
Section titled “Parameters”module
Section titled “module”ESEngineModule
number
height
Section titled “height”number
advance?
Section titled “advance?”() => void | Promise<void>
Returns
Section titled “Returns”Promise<FramePixels | null>