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 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 only string
stageread only string
workgroupSizeoptionalread only readonly [number, number, number]

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

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

The bindings the 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 123, at commit 26de7be8

Edit this page Report a problem