跳转到内容

RenderIrFrameResult

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

Defined in: ir-renderer.ts:66

readonly backend: "webgpu" | "webgl2"

Defined in: ir-renderer.ts:79


readonly bitmap: VideoFrame | ImageBitmap

Defined in: ir-renderer.ts:78

The composed frame, owned by the caller and closed by it.

Composition produces an ImageBitmap. The preview bypass, which skips composition when the decoded source already matches the frame, hands back the decoded VideoFrame instead: every consumer either closes it, draws it through drawImage, or wraps it in a VideoFrame, and all three accept both. Converting one to the other would reintroduce the per-frame full-frame copy the bypass exists to avoid. Read width/height from this result rather than off the image — the two types spell those differently.


readonly optional diagnostics: readonly RendererWorkerDiagnostic[]

Defined in: ir-renderer.ts:80


readonly height: number

Defined in: ir-renderer.ts:87


readonly materialIds: readonly string[]

Defined in: ir-renderer.ts:85


readonly renderScale: number

Defined in: ir-renderer.ts:88


readonly optional resources: RendererWorkerResourceSnapshot

Defined in: ir-renderer.ts:84

Transient resources after composition; the returned bitmap remains caller-owned.


readonly optional timing: RendererWorkerTiming

Defined in: ir-renderer.ts:82

Measured Worker and backend-completion time for this frame.


readonly width: number

Defined in: ir-renderer.ts:86