Skip to content

ZenFG TypeScript API / webgpu / root / CompiledFrame

Interface: CompiledFrame ​

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

Executable result of one consumed recording. It may be re-executed only while its captured callbacks and borrowed GPU resources remain valid.

Extended by ​

Methods ​

execute() ​

execute(options?): void

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

Executes synchronously without timing. Throws on execution or callback failure.

Parameters ​

options? ​

CompiledFrameExecuteOptions

Returns ​

void


executeWithTiming() ​

Call Signature ​

executeWithTiming(options): FrameGraphCpuExecutionTiming

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

Executes synchronously with explicitly selected timing families. CPU results do not await GPU completion. GPU unavailability is non-fatal. Throws synchronously on execution failure; no partial CPU report is returned. Destroying the runtime before GPU readback completes rejects the GPU timing promise with a FrameGraphError whose code is Destroyed.

Parameters ​
options ​

CompiledFrameExecuteOptions & object

Returns ​

FrameGraphCpuExecutionTiming

Call Signature ​

executeWithTiming(options): FrameGraphGpuExecutionTiming

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

Parameters ​
options ​

CompiledFrameExecuteOptions & object

Returns ​

FrameGraphGpuExecutionTiming

Call Signature ​

executeWithTiming(options): FrameGraphBothExecutionTiming

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

Parameters ​
options ​

CompiledFrameExecuteOptions & object

Returns ​

FrameGraphBothExecutionTiming

Call Signature ​

executeWithTiming(options): FrameGraphExecutionTiming

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

Parameters ​
options ​

CompiledFrameExecuteOptions & object

Returns ​

FrameGraphExecutionTiming

Open source / MIT licensed