Skip to content

ZenFG TypeScript API / webgpu / root / CompiledFrameSubmitContext

Type Alias: CompiledFrameSubmitContext

CompiledFrameSubmitContext = object

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

Beta

Context passed to beforeSubmit for one FrameGraph-owned command segment.

The command encoder is valid only during the synchronous callback.

Properties

commandEncoder

readonly commandEncoder: GPUCommandEncoder

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

Encoder that will be finished and submitted after the callback returns.


device

readonly device: GPUDevice

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

Device permanently bound to the FrameGraph instance.


frameIndex

readonly frameIndex: number

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

Caller-provided logical frame index.


segmentCount

readonly segmentCount: number

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

Total number of FrameGraph-owned command segments in this execution.


segmentIndex

readonly segmentIndex: number

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

Zero-based index among FrameGraph-owned command segments.

Open source / MIT licensed