@interpolate
어트리뷰트
The decorated form of the interpolate option, location<0, u32, { interpolate: "flat" }>, or a type and a sampling as { interpolate: ["linear", "centroid"] }.
시그니처와 이름 아래 문장, 컴파일러 메시지는 커밋 af54ddad5의 컴파일러가 쓴 영어 원문입니다.
구문
declare function interpolate(type: string, sampling?: string): (target: unknown, context?: unknown) => void매개변수
-
typestring -
sampling선택 사항string
선언에는 TypeScript 데코레이터 런타임이 넘겨주는 target과 context도 적혀 있습니다. 호출에서는 둘 다 쓰지 않습니다.
설명
An integer varying takes flat automatically. "linear" and the "sample" position are not supported yet by the GLSL backend (Rule 10.3; GLSL ES 3.00 has smooth, flat and centroid only), so they fail the module closed there.