lowerWgsl
이 페이지에서

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

매개변수

m ModuleDecl
level OptLevel

반환값

ModuleDecl

설명

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 기준

이 페이지 편집 문제 보고