wgslBackend
상수, 출력 분류
The WGSL target: a Backend that spells types, literals, intrinsics and module declarations for device.createShaderModule.
import { wgslBackend } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
const wgslBackend: Backend설명
Pass it to any API that takes a backend,
such as hostFeaturesFor or capabilityMatrix. The WGSL emitters in this
module (emitModule, emitFragment, emitFuncs, …) are already
bound to it.
함께 보기
소스
src/core/backends/wgsl.ts, 304행, 커밋 c66579bf 기준