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