---
title: "PackEntry: interface in Reflection, TypeShade API reference"
description: "PackEntry, an interface in Reflection. A shader entry point. name and stage are the fields packModule() has always given."
url: https://typeshade.dev/api/packentry/
language: en
---

# `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

```ts
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

**`name` read only `string`**

The authored name the host calls the entry by.

**`emitted` read only `string`**

The name the emitted text declares the entry under ([Rule 11.10](https://typeshade.dev/reference/rules/11-10/)).

**`stage` read only `string`**

**`workgroupSize` optional read only `readonly [number, number, number]`**

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

**`workgroupSizeOverrides` optional read 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.

**`inputs` optional read only `readonly PackIo[]`**

**`outputs` optional read only `readonly PackIo[]`**

**`bindings` optional read only `readonly { readonly name: string; readonly writes: boolean }[]`**

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

**`vertex` optional read only `GpuVertexLayout`**

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

**`line` optional read only `PackLine`**

## Source

[`src/core/manifest-types.ts`, line 221](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/manifest-types.ts#L221), at commit af54ddad5
