Skip to content

ZenFG TypeScript API / webgpu / root / TextureDesc

Type Alias: TextureDesc

TextureDesc = object

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

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

Texture dimension.

Default Value

'2d'


format

readonly format: GPUTextureFormat

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

WebGPU texture format.


label?

readonly optional label?: string

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

Optional label propagated to diagnostics and physical allocations.


mipLevelCount?

readonly optional mipLevelCount?: number

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

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

Sample count 1 or 4.

Default Value

1


size

readonly size: TextureSize

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

Positive uint32 texture extent.


usage?

readonly optional usage?: GPUTextureUsageFlags

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

Explicit allocation usage, or derived usage when omitted.


viewFormats?

readonly optional viewFormats?: readonly GPUTextureFormat[]

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

Additional compatible formats permitted when creating texture views.

Open source / MIT licensed