ZenFG TypeScript API / webgpu / root / ImportTextureOptions
Type Alias: ImportTextureOptions
ImportTextureOptions =
object
Defined in: packages/webgpu/src/types.ts:346
Beta
Configures how a caller-owned texture is exposed to FrameGraph.
Physical metadata is read from the GPUTexture. exposedUsage may narrow the texture's native usage for graph declarations, while viewFormats declares alternate formats known to have been allowed when the physical texture was created.
Properties
exposedUsage?
readonlyoptionalexposedUsage?:GPUTextureUsageFlags
Defined in: packages/webgpu/src/types.ts:360
Graph-visible usage flags. TRANSIENT_ATTACHMENT is not supported.
Default Value
The native texture usage.initialContents?
readonlyoptionalinitialContents?:InitialContents
Defined in: packages/webgpu/src/types.ts:366
Initial logical-content state.
Default Value
'defined'
label?
readonlyoptionallabel?:string
Defined in: packages/webgpu/src/types.ts:352
Optional graph-local label.
Default Value
The native texture label.viewFormats?
readonlyoptionalviewFormats?: readonlyGPUTextureFormat[]
Defined in: packages/webgpu/src/types.ts:354
Alternate view formats available on the physical texture.