Skip to content

ZenFG TypeScript API / webgpu / root / TextureDesc

Type Alias: TextureDesc ​

TextureDesc = object

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

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:281

Texture dimension.

Default Value ​

'2d'


format ​

readonly format: GPUTextureFormat

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

WebGPU texture format.


label? ​

readonly optional label?: string

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

Optional label propagated to diagnostics and physical allocations.


mipLevelCount? ​

readonly optional mipLevelCount?: number

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

Positive mip level count within the extent-derived maximum.

Default Value ​

1


sampleCount? ​

readonly optional sampleCount?: number

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

Sample count 1 or 4.

Default Value ​

1


size ​

readonly size: TextureSize

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

Positive uint32 texture extent.


usage? ​

readonly optional usage?: GPUTextureUsageFlags

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

Explicit allocation usage, or derived usage when omitted. TRANSIENT_ATTACHMENT is not supported.


viewFormats? ​

readonly optional viewFormats?: readonly GPUTextureFormat[]

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

Additional compatible formats permitted when creating texture views.

Open source / MIT licensed