---
title: "EntryInfo: interface in Reflection, TypeShade API reference"
description: "EntryInfo, an interface in Reflection. One @vertex, @fragment or @compute entry point: its stage…"
url: https://typeshade.dev/api/entryinfo/
language: en
---

# `EntryInfo`

Interface in Reflection

One `@vertex`, `@fragment` or `@compute` entry point: its stage, its parameter and return types as DSL type keys (the strings typeKey returns), and, for a `@compute` entry only, its workgroup size, which defaults to 64 when the entry declares none, matching the WGSL backend's own default.

`import type { EntryInfo } from 'typeshade'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
interface EntryInfo {
  readonly name: string;
  readonly emitted: string;
  readonly stage: 'vertex' | 'fragment' | 'compute';
  readonly workgroupSize?: number;
  readonly workgroupShape?: WorkgroupShape;
  readonly workgroupSizeOverrides?: readonly [ string | undefined, string | undefined, string | undefined, ];
  readonly inputs: readonly string[];
  readonly output: string;
  readonly portable?: true;
  readonly io: EntryIo;
}
```

## Description

[`semanticDiff`](https://typeshade.dev/api/semanticdiff/) fingerprints a module’s public interface with this shape: two modules whose entries differ here have a different pipeline contract even if every other byte of emitted source matches.

## Instance properties

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

The entry’s authored name, the one the host calls it by ([Rule 11.10](https://typeshade.dev/reference/rules/11-10/)).

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

The entry’s name in the emitted text ([Rule 11.10](https://typeshade.dev/reference/rules/11-10/)). Equal to `name` when the target spells it as written.

**`stage` read only `'vertex' | 'fragment' | 'compute'`**

**`workgroupSize` optional read only `number`**

The `x` workgroup extent of a compute entry. A host sizing a dispatch reads [`EntryInfo.workgroupShape`](https://typeshade.dev/api/entryinfo/), which also carries `y` and `z`.

**`workgroupShape` optional read only `WorkgroupShape`**

The `[x, y, z]` workgroup extents of a compute entry, WGSL’s `@workgroup_size(x, y, z)` with a missing extent as 1: a dispatch of `n` invocations along an axis needs `ceil(n / extent)` workgroups on it.

**`workgroupSizeOverrides` optional read only `readonly [ string | undefined, string | undefined, string | undefined, ]`**

Override identifiers for the corresponding axes in `workgroupShape`. Each selected value replaces the corresponding default extent when a host creates a compute pipeline.

**`inputs` read only `readonly string[]`**

**`output` read only `string`**

**`portable` optional read only `true`**

Present, as `true`, when the entry is declared a portable kernel; absent otherwise, never `false`. It tells a host which dispatch shape the kernel needs: on a backend with no compute stage a portable kernel emits as fragment-shader GPGPU and is dispatched as a fullscreen draw into an `R32UI` target instead of a compute dispatch. An entry without it runs on WebGL2 as the pass program when it reaches no texture ([Rule 8.24](https://typeshade.dev/reference/rules/8-24/)).

**`io` read only `EntryIo`**

The entry’s location and builtin interface, in structured form. `inputs` and `output` are type keys, which is what [`semanticDiff`](https://typeshade.dev/api/semanticdiff/) fingerprints with; `io` is the view beside them that a host validating a stage pair reads for the `@location` numbers. Always present. See [`EntryIo`](https://typeshade.dev/api/entryio/) for how struct parameters and returns flatten.

## See also

- [`typeKey`](https://typeshade.dev/api/typekey/)
- [`semanticDiff`](https://typeshade.dev/api/semanticdiff/)
- [`EntryIo`](https://typeshade.dev/api/entryio/)

## Source

[`src/core/reflect/entry-types.ts`, line 89](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/reflect/entry-types.ts#L89), at commit af54ddad5
