Skip to content

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? ​

readonly optional exposedUsage?: GPUTextureUsageFlags

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

Graph-visible usage flags. TRANSIENT_ATTACHMENT is not supported.

Default Value ​

ts
The native texture usage.

initialContents? ​

readonly optional initialContents?: InitialContents

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

Initial logical-content state.

Default Value ​

'defined'


label? ​

readonly optional label?: string

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

Optional graph-local label.

Default Value ​

ts
The native texture label.

viewFormats? ​

readonly optional viewFormats?: readonly GPUTextureFormat[]

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

Alternate view formats available on the physical texture.

Open source / MIT licensed