> Development branch documentation · commit 327c05c78d2f528e4f4a679fcc7a77d9aa161f48
> Package versions: @zenfg/webgpu 0.1.0, @zenfg/snapshot 0.1.0, @zenfg/inspector 0.1.0, zenfg 0.1.0, zenfg-snapshot 0.1.0
> Source: https://github.com/uinosoft/zenfg/tree/327c05c78d2f528e4f4a679fcc7a77d9aa161f48/packages

[ZenFG TypeScript API](/zenfg/docs/api/index.md) / [webgpu](/zenfg/docs/api/webgpu/index.md) / snapshot

# snapshot

Converts a full `@zenfg/webgpu` compilation report, execution timing result,
and resource-pool snapshot into the portable ZenFG Snapshot 1.2 wire model.

Capture inputs from the same compiled frame: compile with `{ report: true }`,
execute with explicit timing, and save CPU results and pool statistics before
awaiting GPU readback and calling [createFrameGraphSnapshot](/zenfg/docs/api/webgpu/snapshot/functions/createFrameGraphSnapshot.md).
Report provenance is a caller-owned convention because independently supplied
report values do not carry a shared compiled-frame identity.

## Type Aliases

- [CreateFrameGraphSnapshotOptions](/zenfg/docs/api/webgpu/snapshot/type-aliases/CreateFrameGraphSnapshotOptions.md)

## Functions

- [createFrameGraphSnapshot](/zenfg/docs/api/webgpu/snapshot/functions/createFrameGraphSnapshot.md)
