PackEntry
On this page

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 only string

The authored name the host calls the entry by.

emittedread only string

The name the emitted text declares the entry under (Rule 11.10).

stageread only string
workgroupSizeoptionalread only readonly [number, number, number]

@workgroup_size(x, y, z), for a compute entry.

workgroupSizeOverridesoptionalread only readonly [string | null, string | null, string | null]

The override name for each specialized workgroup axis; null axes use workgroupSize. null keeps this optional metadata stable through JSON serialization.

inputsoptionalread only readonly PackIo[]
outputsoptionalread only readonly PackIo[]
bindingsoptionalread only readonly { readonly name: string; readonly writes: boolean }[]

The bindings the emitted entry reaches through its calls, and whether it writes each.

vertexoptionalread only GpuVertexLayout

A vertex entry’s vertex buffer, tightly packed, with formats.

lineoptionalread only PackLine

Source

src/core/manifest-types.ts, line 221, at commit af54ddad5

Edit this page Report a problem