FragmentDeclares
인터페이스, 출력 분류
What a fragment declares in the program it is composed into: the manifest a composer checks its host prelude against.
import type { FragmentDeclares } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
interface FragmentDeclares { readonly functions: readonly string[]; readonly structs: readonly string[]; readonly bindings: readonly string[]; readonly consts: readonly string[]; readonly overrides: readonly string[]; readonly entryPoints: readonly string[];}설명
Names are the emitted spellings, so they are the ones a host actually collides with.
인스턴스 속성
functions읽기 전용readonly string[]Helper functions defined in the fragment (entry points are listed separately).
structs읽기 전용readonly string[]Plain struct types. A struct consumed as a uniform or storage binding is emitted as a block, so its name appears under
bindingsinstead.bindings읽기 전용readonly string[]Resource bindings the fragment declares, by binding name.
consts읽기 전용readonly string[]Module constants.
overrides읽기 전용readonly string[]Pipeline specialization constants (
overrideConst).entryPoints읽기 전용readonly string[]Stage entry points. Listed whether or not they were emitted, so a composer that asked for declarations only still knows what it excluded.
소스
src/core/fragment.ts, 29행, 커밋 c66579bf 기준