Skip to content

ZenFG TypeScript API / webgpu / root / ImportBufferOptions

Type Alias: ImportBufferOptions

ImportBufferOptions = object

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

Beta

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

Physical metadata is read from the 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

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

Graph-visible usage flags.

Default Value

ts
The native buffer usage.

initialContents?

readonly optional initialContents?: InitialContents

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

Initial logical-content state.

Default Value

'defined'


label?

readonly optional label?: string

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

Optional graph-local label.

Default Value

ts
The native buffer label.

Open source / MIT licensed