Skip to content

ZenFG TypeScript API / webgpu / root / BufferAccess

Enumeration: BufferAccess

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

Beta

Declares how a graph node uses a buffer.

FrameGraph derives read/write ordering and required GPUBufferUsage flags from these values. Read-write use is expressed as separate access entries.

Enumeration Members

CopyDst

CopyDst: "buffer-copy-dst"

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

Beta

Uses the buffer as the destination of a copy or clear operation.


CopySrc

CopySrc: "buffer-copy-src"

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

Beta

Uses the buffer as the source of a copy operation.


Index

Index: "buffer-index"

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

Beta

Reads the buffer as index input.


Indirect

Indirect: "buffer-indirect"

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

Beta

Reads indirect draw or dispatch arguments from the buffer.


StorageRead

StorageRead: "buffer-storage-read"

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

Beta

Reads the buffer through a read-only storage binding.


StorageWrite

StorageWrite: "buffer-storage-write"

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

Beta

Writes the buffer through a storage binding.


Uniform

Uniform: "buffer-uniform"

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

Beta

Reads the buffer through a uniform binding.


Vertex

Vertex: "buffer-vertex"

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

Beta

Reads the buffer as vertex input.

Open source / MIT licensed