PackEntry
Interface in Reflection
A shader entry point. name and stage are the fields packModule() has always given.
import type { PackEntry } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
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;}Instance properties
nameread onlystringstageread onlystringworkgroupSizeoptionalread onlyreadonly [number, number, number]@workgroup_size(x, y, z), for a compute entry.inputsoptionalread onlyreadonly PackIo[]outputsoptionalread onlyreadonly PackIo[]bindingsoptionalread onlyreadonly { readonly name: string; readonly writes: boolean }[]The bindings the entry reaches through its calls, and whether it writes each.
vertexoptionalread onlyGpuVertexLayoutA vertex entry’s vertex buffer, tightly packed, with formats.
lineoptionalread onlyPackLine
Source
src/core/manifest-types.ts, line 123, at commit 26de7be8