Skip to content

ZenFG TypeScript API / webgpu / root / TextureHandle

Type Alias: TextureHandle ​

TextureHandle = object

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

Beta

An opaque, stable logical texture identity owned by one FrameGraph recording.

The handle is not a physical GPUTexture or an immutable value version. Node recording order and the selected subresources determine which logical value an access consumes or produces. A handle cannot be used by another recorder, and recording APIs reject it after its recorder is consumed by compile().

Properties ​

[handleBrand] ​

readonly [handleBrand]: "TextureHandle"

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

Private compile-time brand; use a recording factory to obtain handles.


id ​

readonly id: number

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

Graph-local diagnostic identifier.


kind ​

readonly kind: "texture"

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

Resource discriminator.


label? ​

readonly optional label?: string

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

Optional diagnostic label copied from the descriptor.

Open source / MIT licensed