@location
Attribute
The decorated form of location<I, T>, a numeric shader IO location: uv: location<0, vec2> for @location(0) uv: vec2.
The signature, the sentence and any message are the compiler's own text at commit af54ddad5.
Syntax
declare function location(n: number): (target: unknown, context?: unknown) => voidParameters
-
nnumber
The declaration also names what the TypeScript decorator runtime hands a decorator, target and context. A call passes neither.