ResolvedDeclaration
Defined in: packages/typegpu/src/resolutionCtx.ts:1146
A single module-scope declaration emitted during resolution.
Properties
Section titled “Properties”code:
string
Defined in: packages/typegpu/src/resolutionCtx.ts:1148
The WGSL code of the declaration.
name:
string|undefined
Defined in: packages/typegpu/src/resolutionCtx.ts:1147
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).