Skip to content

ZenFG TypeScript API / webgpu / root / BufferDesc

Type Alias: BufferDesc

BufferDesc = object

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

Beta

Describes a transient buffer allocated and recycled by FrameGraph.

FrameGraph takes a shallow snapshot for the current recording. When usage is omitted, required usage is derived from retained node accesses.

Properties

label?

readonly optional label?: string

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

Optional label propagated to diagnostics and physical allocations.


size

readonly size: number

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

Non-negative safe-integer buffer size in bytes. Zero is valid.


usage?

readonly optional usage?: GPUBufferUsageFlags

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

Explicit allocation usage, or derived usage when omitted.

Open source / MIT licensed