Skip to content

ZenFG TypeScript API / webgpu / root / CompiledFrameSubmitContext

Type Alias: CompiledFrameSubmitContext ​

CompiledFrameSubmitContext = object

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

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:1168

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


device ​

readonly device: GPUDevice

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

Device permanently bound to the FrameGraph instance.


frameIndex ​

readonly frameIndex: number

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

Caller-provided logical frame index.


segmentCount ​

readonly segmentCount: number

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

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


segmentIndex ​

readonly segmentIndex: number

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

Zero-based index among FrameGraph-owned command segments.

Open source / MIT licensed