PackEntry
인터페이스, 리플렉션 분류
A shader entry point. name and stage are the fields packModule() has always given.
import type { PackEntry } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
interface PackEntry { readonly name: string; readonly stage: string; readonly workgroupSize?: readonly [number, number, number]; readonly inputs?: readonly PackIo[]; readonly outputs?: readonly PackIo[]; readonly bindings?: readonly { readonly name: string; readonly writes: boolean }[]; readonly vertex?: GpuVertexLayout; readonly line?: PackLine;}인스턴스 속성
name읽기 전용stringstage읽기 전용stringworkgroupSize선택 사항읽기 전용readonly [number, number, number]@workgroup_size(x, y, z), for a compute entry.inputs선택 사항읽기 전용readonly PackIo[]outputs선택 사항읽기 전용readonly PackIo[]bindings선택 사항읽기 전용readonly { readonly name: string; readonly writes: boolean }[]The bindings the entry reaches through its calls, and whether it writes each.
vertex선택 사항읽기 전용GpuVertexLayoutA vertex entry’s vertex buffer, tightly packed, with formats.
line선택 사항읽기 전용PackLine
소스
src/core/manifest-types.ts, 123행, 커밋 c66579bf 기준