Skip to content

ZenFG TypeScript API / webgpu / snapshot / CreateFrameGraphSnapshotOptions

Type Alias: CreateFrameGraphSnapshotOptions

CreateFrameGraphSnapshotOptions = object

Defined in: packages/webgpu/src/snapshot.ts:39

Inputs required to project one WebGPU frame into a portable snapshot.

Properties

capturedAt?

readonly optional capturedAt?: string

Defined in: packages/webgpu/src/snapshot.ts:61

ISO-8601 capture timestamp.

Default Value

The current time from new Date().toISOString().


compilation

readonly compilation: FrameGraphCompilationReport

Defined in: packages/webgpu/src/snapshot.ts:44

Full immutable report returned by recorder.compile({ report: true }). It must describe the same compiled frame as all provided timing reports.


cpuTiming?

readonly optional cpuTiming?: FrameGraphCpuTimingReport

Defined in: packages/webgpu/src/snapshot.ts:50

Optional synchronous CPU result from the same execution.


frameIndex

readonly frameIndex: number

Defined in: packages/webgpu/src/snapshot.ts:46

Caller-defined identity; every supplied timing report must match it.


gpuTiming?

readonly optional gpuTiming?: FrameGraphGpuTimingReport

Defined in: packages/webgpu/src/snapshot.ts:48

Optional resolved GPU result from the same execution, including unavailability.


producerVersion?

readonly optional producerVersion?: string

Defined in: packages/webgpu/src/snapshot.ts:63

Version of the application or library producing this capture.


resourcePool

readonly resourcePool: FrameGraphResourcePoolStats

Defined in: packages/webgpu/src/snapshot.ts:55

Aggregate pool counters to record with the capture. Read them after frame execution when the snapshot should include that execution's releases.


runtime?

readonly optional runtime?: NonNullable<FrameGraphSnapshotProducer["runtime"]>

Defined in: packages/webgpu/src/snapshot.ts:68

Optional runtime implementation, graphics API, and backend metadata. graphicsApi defaults to 'webgpu' when omitted.

Open source / MIT licensed