ZenFG TypeScript API / webgpu / snapshot / stringifyFrameGraphSnapshot
Function: stringifyFrameGraphSnapshot()
stringifyFrameGraphSnapshot(
snapshot,options?):string
Defined in: packages/webgpu/src/snapshot.ts:107
Validates and serializes a canonical Snapshot 1.2 document.
Parameters
snapshot
Snapshot produced by createFrameGraphSnapshot or another conforming producer.
options?
Set pretty to true for two-space indentation.
pretty?
boolean
Returns
string
Canonical JSON text without mutating snapshot.
Throws
When the value is not JSON-safe or does not satisfy Snapshot 1.2.