RenderIrFrameResult
此内容尚不支持你的语言。
Defined in: ir-renderer.ts:66
Properties
Section titled “Properties”backend
Section titled “backend”
readonlybackend:"webgpu"|"webgl2"
Defined in: ir-renderer.ts:79
bitmap
Section titled “bitmap”
readonlybitmap: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.
diagnostics?
Section titled “diagnostics?”
readonlyoptionaldiagnostics: readonlyRendererWorkerDiagnostic[]
Defined in: ir-renderer.ts:80
height
Section titled “height”
readonlyheight:number
Defined in: ir-renderer.ts:87
materialIds
Section titled “materialIds”
readonlymaterialIds: readonlystring[]
Defined in: ir-renderer.ts:85
renderScale
Section titled “renderScale”
readonlyrenderScale:number
Defined in: ir-renderer.ts:88
resources?
Section titled “resources?”
readonlyoptionalresources:RendererWorkerResourceSnapshot
Defined in: ir-renderer.ts:84
Transient resources after composition; the returned bitmap remains caller-owned.
timing?
Section titled “timing?”
readonlyoptionaltiming:RendererWorkerTiming
Defined in: ir-renderer.ts:82
Measured Worker and backend-completion time for this frame.
readonlywidth:number
Defined in: ir-renderer.ts:86