Skip to content

ResolvedDeclaration

Defined in: packages/typegpu/src/resolutionCtx.ts:1140

A single module-scope declaration emitted during resolution.

code: string

Defined in: packages/typegpu/src/resolutionCtx.ts:1142

The WGSL code of the declaration.


name: string | undefined

Defined in: packages/typegpu/src/resolutionCtx.ts:1141

The resolved identifier the declaration declares (a fn, struct, var, const or alias name), or undefined for declarations that don’t declare a single identifier (e.g. tgpu['~unstable'].declare).