@invariant
Attribute
The decorated form of the invariant option, builtin<"position", { invariant: true }>: WGSL's promise that this position is computed the same way in two pipelines, so a depth pre-pass matches the shading pass.
The signature, the sentence and any message are the compiler's own text at commit af54ddad5.
Syntax
declare function invariant(target: unknown, context?: unknown): voidParameters
This decorator is written on its own and takes no arguments.
The declaration also names what the TypeScript decorator runtime hands a decorator, target and context. A call passes neither.
Description
Emits invariant gl_Position; on GLSL ES 3.00.