> 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#L265

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

# Type Alias: TextureDesc

> **TextureDesc** = `object`

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

**`Beta`**

Describes a transient texture allocated and recycled by FrameGraph.

FrameGraph snapshots the descriptor for the current recording, materializes
iterable sizes, and copies `viewFormats`. When `usage` is omitted, required
usage is derived from retained node accesses.

## Properties

### dimension?

> `readonly` `optional` **dimension?**: `GPUTextureDimension`

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

Texture dimension.

#### Default Value

`'2d'`

***

### format

> `readonly` **format**: `GPUTextureFormat`

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

WebGPU texture format.

***

### label?

> `readonly` `optional` **label?**: `string`

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

Optional label propagated to diagnostics and physical allocations.

***

### mipLevelCount?

> `readonly` `optional` **mipLevelCount?**: `number`

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

Positive mip level count within the extent-derived maximum.

#### Default Value

`1`

***

### sampleCount?

> `readonly` `optional` **sampleCount?**: `number`

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

Sample count `1` or `4`.

#### Default Value

`1`

***

### size

> `readonly` **size**: [`TextureSize`](/zenfg/docs/api/webgpu/root/type-aliases/TextureSize.md)

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

Positive uint32 texture extent.

***

### usage?

> `readonly` `optional` **usage?**: `GPUTextureUsageFlags`

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

Explicit allocation usage, or derived usage when omitted.

***

### viewFormats?

> `readonly` `optional` **viewFormats?**: readonly `GPUTextureFormat`[]

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

Additional compatible formats permitted when creating texture views.
