Skip to content

ZenFG TypeScript API / webgpu / root / CommandNodeDesc

Type Alias: CommandNodeDesc ​

CommandNodeDesc = object

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

Beta

Declares caller-defined commands in a FrameGraph-owned command segment.

Command nodes default to a side effect because their commands are opaque to dependency analysis.

Properties ​

encode? ​

readonly optional encode?: SynchronousCallback<CommandEncodeContext>

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

Synchronous command-recording callback that must return undefined.


label? ​

readonly optional label?: string

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

Optional diagnostic label.


sideEffect? ​

readonly optional sideEffect?: boolean

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

Whether the command node is a retention root. Defaults to true.


uses? ​

readonly optional uses?: readonly ResourceUse[]

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

Resources accessed by the encoded commands.

Open source / MIT licensed