Skip to content

ZenFG TypeScript API / webgpu / root / TextureAccess

Enumeration: TextureAccess

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

Beta

Declares how a graph node uses a texture.

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

Enumeration Members

ColorAttachmentWrite

ColorAttachmentWrite: "texture-color-attachment-write"

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

Beta

Writes a color attachment or resolve target.


CopyDst

CopyDst: "texture-copy-dst"

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

Beta

Uses the texture as the destination of a copy operation.


CopySrc

CopySrc: "texture-copy-src"

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

Beta

Uses the texture as the source of a copy operation.


DepthRead

DepthRead: "texture-depth-read"

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

Beta

Reads a depth attachment without changing its stored depth.


DepthWrite

DepthWrite: "texture-depth-write"

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

Beta

Writes a depth attachment.


Sampled

Sampled: "texture-sampled"

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

Beta

Samples the texture through a texture binding.


StorageRead

StorageRead: "texture-storage-read"

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

Beta

Reads the texture through a storage texture binding.


StorageWrite

StorageWrite: "texture-storage-write"

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

Beta

Writes the texture through a storage texture binding.

Open source / MIT licensed