Skip to content

ZenFG TypeScript API / webgpu / root / CommandNodeDesc

Type Alias: CommandNodeDesc

CommandNodeDesc = object

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

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

Synchronous command-recording callback that must return undefined.


label?

readonly optional label?: string

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

Optional diagnostic label.


sideEffect?

readonly optional sideEffect?: boolean

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

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


uses?

readonly optional uses?: readonly ResourceUse[]

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

Resources accessed by the encoded commands.

Open source / MIT licensed