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?
readonlyoptionalcapturedAt?:string
Defined in: packages/webgpu/src/snapshot.ts:61
ISO-8601 capture timestamp.
Default Value
The current time from new Date().toISOString().
compilation
readonlycompilation: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?
readonlyoptionalcpuTiming?:FrameGraphCpuTimingReport
Defined in: packages/webgpu/src/snapshot.ts:50
Optional synchronous CPU result from the same execution.
frameIndex
readonlyframeIndex:number
Defined in: packages/webgpu/src/snapshot.ts:46
Caller-defined identity; every supplied timing report must match it.
gpuTiming?
readonlyoptionalgpuTiming?:FrameGraphGpuTimingReport
Defined in: packages/webgpu/src/snapshot.ts:48
Optional resolved GPU result from the same execution, including unavailability.
producerVersion?
readonlyoptionalproducerVersion?:string
Defined in: packages/webgpu/src/snapshot.ts:63
Version of the application or library producing this capture.
resourcePool
readonlyresourcePool: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?
readonlyoptionalruntime?: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.