ExternRequirement
이 페이지에서

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읽기 전용 string
type읽기 전용 string
wgsl읽기 전용 string
glsl읽기 전용 string
stage선택 사항읽기 전용 'vertex' | 'fragment' | 'compute'

함께 보기

소스

src/core/reflect.ts, 683행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고