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 af54ddad5.
Syntax
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;}Instance properties
nameread onlystringThe authored name the host calls the entry by.
emittedread onlystringThe name the emitted text declares the entry under (Rule 11.10).
stageread onlystringworkgroupSizeoptionalread onlyreadonly [number, number, number]@workgroup_size(x, y, z), for a compute entry.workgroupSizeOverridesoptionalread onlyreadonly [string | null, string | null, string | null]The override name for each specialized workgroup axis;
nullaxes useworkgroupSize.nullkeeps this optional metadata stable through JSON serialization.inputsoptionalread onlyreadonly PackIo[]outputsoptionalread onlyreadonly PackIo[]bindingsoptionalread onlyreadonly { readonly name: string; readonly writes: boolean }[]The bindings the emitted 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 221, at commit af54ddad5