> 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#L398

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

# Type Alias: ImportBufferOptions

> **ImportBufferOptions** = `object`

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

**`Beta`**

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

Physical metadata is read from the [GPUBuffer](https://gpuweb.github.io/gpuweb/#gpubuffer). `exposedSize` exposes
a prefix of the physical allocation and `exposedUsage` may narrow its native
usage for graph declarations.

## Properties

### exposedSize?

> `readonly` `optional` **exposedSize?**: `number`

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

Graph-visible prefix size in bytes.

#### Default Value

```ts
The native buffer size.
```

***

### exposedUsage?

> `readonly` `optional` **exposedUsage?**: `GPUBufferUsageFlags`

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

Graph-visible usage flags.

#### Default Value

```ts
The native buffer usage.
```

***

### initialContents?

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

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

Initial logical-content state.

#### Default Value

`'defined'`

***

### label?

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

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

Optional graph-local label.

#### Default Value

```ts
The native buffer label.
```
