A frame’s provenance and layout, as reported by getFrameInfo().
Properties#
| Property | Type | Description |
|---|---|---|
frameCount |
number |
Renders completed, export and thumbnail included — prefer presentCount. |
presentCount |
number |
Presents to the display surface: the “a new frame exists” signal. A video export on macOS presents too, and readFrame refuses while it runs. |
busy |
boolean |
The last update()’s return: the engine still has queued work. |
width |
number |
Display surface width in pixels. |
height |
number |
Display surface height in pixels. |
pixelRatio |
number |
The camera’s pixel ratio, which requestFrame sets. |
format |
"rgba8-unpremul" |
Pixel layout of readFrame’s output: sRGB RGBA8 with straight (not premultiplied) alpha. |
origin |
"top-left" |
Row order of readFrame’s output. |
colorSpace |
"srgb" |
"extended-srgb" |
readable |
boolean |
Whether the render context supports readback at all (a dummy one does not). |