Skip to content

ZenFG TypeScript API / webgpu / root / FrameGraphGpuTimingReport

Type Alias: FrameGraphGpuTimingReport ​

FrameGraphGpuTimingReport = { frameDurationMicros: number; frameIndex: number; nodes: readonly object[]; status: "available"; } | { frameIndex: number; reason: "unsupported" | "busy" | "readback-failed" | "no-timed-nodes" | "too-many-timed-nodes"; status: "unavailable"; }

Defined in: packages/webgpu/src/types.ts:1137

GPU timing result returned by executeWithTiming.

Union Members ​

Type Literal ​

{ frameDurationMicros: number; frameIndex: number; nodes: readonly object[]; status: "available"; }

frameDurationMicros ​

readonly frameDurationMicros: number

Span from the first retained render/compute pass start to the last end.

frameIndex ​

readonly frameIndex: number

nodes ​

readonly nodes: readonly object[]

status ​

readonly status: "available"


Type Literal ​

{ frameIndex: number; reason: "unsupported" | "busy" | "readback-failed" | "no-timed-nodes" | "too-many-timed-nodes"; status: "unavailable"; }

frameIndex ​

readonly frameIndex: number

reason ​

readonly reason: "unsupported" | "busy" | "readback-failed" | "no-timed-nodes" | "too-many-timed-nodes"

Why timing is unavailable. too-many-timed-nodes means more than 2048 timed nodes; execution still proceeds.

status ​

readonly status: "unavailable"

Open source / MIT licensed