@invariant
Attribute
On @builtin("position"): 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 and the sentence under each name are the compiler's own text at commit 26de7be8.
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.