Skip to content

ZenFG TypeScript API / webgpu / root / BufferHandle

Type Alias: BufferHandle ​

BufferHandle = object

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

Beta

An opaque, stable logical buffer identity owned by one FrameGraph recording.

The handle is not a physical GPUBuffer or an immutable value version. Node recording order and the selected byte range determine which logical value an access consumes or produces. A handle cannot be used by another recorder, and recording APIs reject it after its recorder is consumed by compile().

Properties ​

[handleBrand] ​

readonly [handleBrand]: "BufferHandle"

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

Private compile-time brand; use a recording factory to obtain handles.


id ​

readonly id: number

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

Graph-local diagnostic identifier.


kind ​

readonly kind: "buffer"

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

Resource discriminator.


label? ​

readonly optional label?: string

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

Optional diagnostic label copied from the descriptor.

Open source / MIT licensed