PackEntry
인터페이스, 리플렉션 분류
셰이더 진입점 하나입니다. name과 stage는 packModule()이 항상 제공한 필드입니다.
import type { PackEntry } from 'typeshade'
설명은 커밋 af54ddad5의 검토된 컴파일러 문서를 번역한 것입니다. 시그니처와 예제 코드는 원문을 따르며, 필요한 경우 설명에 편집상 수정이 반영됩니다.
구문
interface PackEntry { readonly name: string; readonly emitted: string; readonly stage: string; readonly workgroupSize?: readonly [number, number, number]; readonly workgroupSizeOverrides?: readonly [string | null, string | null, string | null]; readonly inputs?: readonly PackIo[]; readonly outputs?: readonly PackIo[]; readonly bindings?: readonly { readonly name: string; readonly writes: boolean }[]; readonly vertex?: GpuVertexLayout; readonly line?: PackLine;}인스턴스 속성
name읽기 전용string호스트가 진입점을 호출할 때 쓰는, 작성한 이름입니다.
emitted읽기 전용string생성된 텍스트가 진입점을 선언하는 이름입니다(규칙 11.10).
stage읽기 전용stringworkgroupSize선택 사항읽기 전용readonly [number, number, number]컴퓨트 진입점의
@workgroup_size(x, y, z)입니다.workgroupSizeOverrides선택 사항읽기 전용readonly [string | null, string | null, string | null]특수화된 워크그룹 축마다의 override 이름입니다.
null인 축은workgroupSize를 씁니다.null은 이 선택적 메타데이터가 JSON 직렬화를 거쳐도 안정적으로 유지되게 합니다.inputs선택 사항읽기 전용readonly PackIo[]outputs선택 사항읽기 전용readonly PackIo[]bindings선택 사항읽기 전용readonly { readonly name: string; readonly writes: boolean }[]진입점이 호출을 거쳐 닿는 바인딩과, 각 바인딩에 쓰는지 여부입니다.
vertex선택 사항읽기 전용GpuVertexLayout버텍스 진입점의 버텍스 버퍼입니다. 빈틈없이 패킹되며, 형식을 함께 담습니다.
line선택 사항읽기 전용PackLine
소스
src/core/manifest-types.ts, 221행, 커밋 af54ddad5 기준