lowerWgsl()
함수, 출력 분류
Run the passes emitModule runs before writing text (validation, the capability check, autoVars, lowerModule and the optimizer at level) and return the resulting ModuleDecl.
import { lowerWgsl } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
const lowerWgsl: (m: ModuleDecl, level: OptLevel) => ModuleDecl매개변수
mModuleDecllevelOptLevel
반환값
설명
The string emit and this function share one recipe, so a tool
that inspects the lowered module (an instruction count, for example) sees exactly the
module emitModuleAt would write at the same level.
함께 보기
소스
src/core/backends/wgsl.ts, 604행, 커밋 c66579bf 기준