ExternRequirement
인터페이스, 리플렉션 분류
One host-provided global a module expects, declared with externVar.
import type { ExternRequirement } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
interface ExternRequirement { readonly name: string; readonly type: string; readonly wgsl: string; readonly glsl: string; readonly stage?: 'vertex' | 'fragment' | 'compute';}설명
type is the
DSL type key (the string typeKey returns). wgsl and glsl are the per-target
spellings the emit writes, and the host provides the global under those; name is the
logical name the module uses. stage, when present, is the advisory stage the declaration
named.
인스턴스 속성
name읽기 전용stringtype읽기 전용stringwgsl읽기 전용stringglsl읽기 전용stringstage선택 사항읽기 전용'vertex' | 'fragment' | 'compute'
함께 보기
소스
src/core/reflect.ts, 683행, 커밋 c66579bf 기준