> Development branch documentation · commit 327c05c78d2f528e4f4a679fcc7a77d9aa161f48
> Package versions: @zenfg/webgpu 0.1.0, @zenfg/snapshot 0.1.0, @zenfg/inspector 0.1.0, zenfg 0.1.0, zenfg-snapshot 0.1.0
> Source: https://github.com/uinosoft/zenfg/blob/327c05c78d2f528e4f4a679fcc7a77d9aa161f48/packages/webgpu/src/types.ts#L344

[ZenFG TypeScript API](/zenfg/docs/api/index.md) / [webgpu](/zenfg/docs/api/webgpu/index.md) / [root](/zenfg/docs/api/webgpu/root/index.md) / ImportTextureOptions

# Type Alias: ImportTextureOptions

> **ImportTextureOptions** = `object`

Defined in: [packages/webgpu/src/types.ts:344](https://github.com/uinosoft/zenfg/blob/327c05c78d2f528e4f4a679fcc7a77d9aa161f48/packages/webgpu/src/types.ts#L344)

**`Beta`**

Configures how a caller-owned texture is exposed to FrameGraph.

Physical metadata is read from the [GPUTexture](https://gpuweb.github.io/gpuweb/#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](https://github.com/uinosoft/zenfg/blob/327c05c78d2f528e4f4a679fcc7a77d9aa161f48/packages/webgpu/src/types.ts#L358)

Graph-visible usage flags.

#### Default Value

```ts
The native texture usage.
```

***

### initialContents?

> `readonly` `optional` **initialContents?**: `InitialContents`

Defined in: [packages/webgpu/src/types.ts:364](https://github.com/uinosoft/zenfg/blob/327c05c78d2f528e4f4a679fcc7a77d9aa161f48/packages/webgpu/src/types.ts#L364)

Initial logical-content state.

#### Default Value

`'defined'`

***

### label?

> `readonly` `optional` **label?**: `string`

Defined in: [packages/webgpu/src/types.ts:350](https://github.com/uinosoft/zenfg/blob/327c05c78d2f528e4f4a679fcc7a77d9aa161f48/packages/webgpu/src/types.ts#L350)

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](https://github.com/uinosoft/zenfg/blob/327c05c78d2f528e4f4a679fcc7a77d9aa161f48/packages/webgpu/src/types.ts#L352)

Alternate view formats available on the physical texture.
