wgslType
이 페이지에서

wgslType()

함수, 출력 분류

Spell a ShaderType as WGSL type syntax.

import { wgslType } from 'typeshade'

시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.

구문

function wgslType(t: ShaderType): string

매개변수

t ShaderType

반환값

string

예외

SD0040

SD0040 if t is an f64 or vec64 type, or a matrix of f64. Those types exist only before the double-precision lowering pass (fp64Lower, which every emit runs) rewrites them to vec2<f32> and the DF64 struct 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 기준

이 페이지 편집 문제 보고