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?
readonlyoptionaldimension?:GPUTextureDimension
Defined in: packages/webgpu/src/types.ts:281
Texture dimension.
Default Value
'2d'
format
readonlyformat:GPUTextureFormat
Defined in: packages/webgpu/src/types.ts:271
WebGPU texture format.
label?
readonlyoptionallabel?:string
Defined in: packages/webgpu/src/types.ts:269
Optional label propagated to diagnostics and physical allocations.
mipLevelCount?
readonlyoptionalmipLevelCount?:number
Defined in: packages/webgpu/src/types.ts:287
Positive mip level count within the extent-derived maximum.
Default Value
1
sampleCount?
readonlyoptionalsampleCount?:number
Defined in: packages/webgpu/src/types.ts:293
Sample count 1 or 4.
Default Value
1
size
readonlysize:TextureSize
Defined in: packages/webgpu/src/types.ts:275
Positive uint32 texture extent.
usage?
readonlyoptionalusage?:GPUTextureUsageFlags
Defined in: packages/webgpu/src/types.ts:295
Explicit allocation usage, or derived usage when omitted. TRANSIENT_ATTACHMENT is not supported.
viewFormats?
readonlyoptionalviewFormats?: readonlyGPUTextureFormat[]
Defined in: packages/webgpu/src/types.ts:273
Additional compatible formats permitted when creating texture views.