Skip to content

ZenFG TypeScript API / webgpu / root / TextureHandle

Type Alias: TextureHandle

TextureHandle = object

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

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

__brand

readonly __brand: "TextureHandle"

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

Compile-time brand; callers must not construct handles manually.


id

readonly id: number

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

Graph-local diagnostic identifier.


kind

readonly kind: "texture"

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

Resource discriminator.


label?

readonly optional label?: string

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

Optional diagnostic label copied from the descriptor.

Open source / MIT licensed