wgslType()
함수, 출력 분류
Spell a ShaderType as WGSL type syntax.
import { wgslType } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
function wgslType(t: ShaderType): string매개변수
반환값
string
예외
SD0040SD0040iftis anf64orvec64type, or a matrix off64. Those types exist only before the double-precision lowering pass (fp64Lower, which every emit runs) rewrites them tovec2<f32>and theDF64struct types. Reaching one here means that pass did not run, and the error is raised so a shader never ships with its double precision quietly reduced to single precision.
함께 보기
소스
src/core/backends/wgsl.ts, 59행, 커밋 c66579bf 기준