Skip to content

ZenFG TypeScript API / webgpu / root / ImportTextureOptions

Type Alias: ImportTextureOptions

ImportTextureOptions = object

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

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:358

Graph-visible usage flags.

Default Value

ts
The native texture usage.

initialContents?

readonly optional initialContents?: InitialContents

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

Initial logical-content state.

Default Value

'defined'


label?

readonly optional label?: string

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

Optional graph-local label.

Default Value

ts
The native texture label.

viewFormats?

readonly optional viewFormats?: readonly GPUTextureFormat[]

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

Alternate view formats available on the physical texture.

Open source / MIT licensed