@invariant
어트리뷰트
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.
시그니처와 이름 아래 문장, 컴파일러 메시지는 커밋 af54ddad5의 컴파일러가 쓴 영어 원문입니다.
구문
declare function invariant(target: unknown, context?: unknown): void매개변수
이 데코레이터는 인자 없이 그대로 붙입니다.
선언에는 TypeScript 데코레이터 런타임이 넘겨주는 target과 context도 적혀 있습니다. 호출에서는 둘 다 쓰지 않습니다.
설명
Emits invariant gl_Position; on GLSL ES 3.00.