> 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/blob/327c05c78d2f528e4f4a679fcc7a77d9aa161f48/packages/webgpu/src/types.ts#L1288

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

# Interface: CompiledFrame

Defined in: [packages/webgpu/src/types.ts:1288](https://github.com/uinosoft/zenfg/blob/327c05c78d2f528e4f4a679fcc7a77d9aa161f48/packages/webgpu/src/types.ts#L1288)

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

## Extended by

- [`CompiledFrameWithReport`](/zenfg/docs/api/webgpu/root/interfaces/CompiledFrameWithReport.md)

## Methods

### execute()

> **execute**(`options?`): `void`

Defined in: [packages/webgpu/src/types.ts:1290](https://github.com/uinosoft/zenfg/blob/327c05c78d2f528e4f4a679fcc7a77d9aa161f48/packages/webgpu/src/types.ts#L1290)

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

#### Parameters

##### options?

[`CompiledFrameExecuteOptions`](/zenfg/docs/api/webgpu/root/type-aliases/CompiledFrameExecuteOptions.md)

#### Returns

`void`

***

### executeWithTiming()

> **executeWithTiming**(`options`): [`FrameGraphExecutionTiming`](/zenfg/docs/api/webgpu/root/type-aliases/FrameGraphExecutionTiming.md)

Defined in: [packages/webgpu/src/types.ts:1296](https://github.com/uinosoft/zenfg/blob/327c05c78d2f528e4f4a679fcc7a77d9aa161f48/packages/webgpu/src/types.ts#L1296)

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.

#### Parameters

##### options

[`CompiledFrameExecuteOptions`](/zenfg/docs/api/webgpu/root/type-aliases/CompiledFrameExecuteOptions.md) & `object`

#### Returns

[`FrameGraphExecutionTiming`](/zenfg/docs/api/webgpu/root/type-aliases/FrameGraphExecutionTiming.md)
