> Development branch documentation · commit 327c05c78d2f528e4f4a679fcc7a77d9aa161f48
> Package versions: @zenfg/webgpu 0.1.0, @zenfg/snapshot 0.1.0, @zenfg/inspector 0.1.0, zenfg 0.1.0, zenfg-snapshot 0.1.0
> Source: https://github.com/uinosoft/zenfg/blob/327c05c78d2f528e4f4a679fcc7a77d9aa161f48/packages/webgpu/src/types.ts#L9

[ZenFG TypeScript API](/zenfg/docs/api/index.md) / [webgpu](/zenfg/docs/api/webgpu/index.md) / [root](/zenfg/docs/api/webgpu/root/index.md) / TextureAccess

# Enumeration: TextureAccess

Defined in: [packages/webgpu/src/types.ts:9](https://github.com/uinosoft/zenfg/blob/327c05c78d2f528e4f4a679fcc7a77d9aa161f48/packages/webgpu/src/types.ts#L9)

**`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](https://github.com/uinosoft/zenfg/blob/327c05c78d2f528e4f4a679fcc7a77d9aa161f48/packages/webgpu/src/types.ts#L17)

**`Beta`**

Writes a color attachment or resolve target.

***

### CopyDst

> **CopyDst**: `"texture-copy-dst"`

Defined in: [packages/webgpu/src/types.ts:25](https://github.com/uinosoft/zenfg/blob/327c05c78d2f528e4f4a679fcc7a77d9aa161f48/packages/webgpu/src/types.ts#L25)

**`Beta`**

Uses the texture as the destination of a copy operation.

***

### CopySrc

> **CopySrc**: `"texture-copy-src"`

Defined in: [packages/webgpu/src/types.ts:23](https://github.com/uinosoft/zenfg/blob/327c05c78d2f528e4f4a679fcc7a77d9aa161f48/packages/webgpu/src/types.ts#L23)

**`Beta`**

Uses the texture as the source of a copy operation.

***

### DepthRead

> **DepthRead**: `"texture-depth-read"`

Defined in: [packages/webgpu/src/types.ts:19](https://github.com/uinosoft/zenfg/blob/327c05c78d2f528e4f4a679fcc7a77d9aa161f48/packages/webgpu/src/types.ts#L19)

**`Beta`**

Reads a depth attachment without changing its stored depth.

***

### DepthWrite

> **DepthWrite**: `"texture-depth-write"`

Defined in: [packages/webgpu/src/types.ts:21](https://github.com/uinosoft/zenfg/blob/327c05c78d2f528e4f4a679fcc7a77d9aa161f48/packages/webgpu/src/types.ts#L21)

**`Beta`**

Writes a depth attachment.

***

### Sampled

> **Sampled**: `"texture-sampled"`

Defined in: [packages/webgpu/src/types.ts:11](https://github.com/uinosoft/zenfg/blob/327c05c78d2f528e4f4a679fcc7a77d9aa161f48/packages/webgpu/src/types.ts#L11)

**`Beta`**

Samples the texture through a texture binding.

***

### StorageRead

> **StorageRead**: `"texture-storage-read"`

Defined in: [packages/webgpu/src/types.ts:13](https://github.com/uinosoft/zenfg/blob/327c05c78d2f528e4f4a679fcc7a77d9aa161f48/packages/webgpu/src/types.ts#L13)

**`Beta`**

Reads the texture through a storage texture binding.

***

### StorageWrite

> **StorageWrite**: `"texture-storage-write"`

Defined in: [packages/webgpu/src/types.ts:15](https://github.com/uinosoft/zenfg/blob/327c05c78d2f528e4f4a679fcc7a77d9aa161f48/packages/webgpu/src/types.ts#L15)

**`Beta`**

Writes the texture through a storage texture binding.
