---
title: "EntryParam: interface in IR, TypeShade API reference"
description: "EntryParam, an interface in IR. An entry-point parameter: it carries a @builtin(...) or a @location(n)."
url: https://typeshade.dev/api/entryparam/
language: en
---

# `EntryParam`

Interface in IR

An entry-point parameter: it carries a `@builtin(...)` or a `@location(n)`.

`import type { EntryParam } from 'typeshade'`
`import type { EntryParam } from 'typeshade/core/ir'`

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

## Syntax

```ts
interface EntryParam {
  readonly name: string;
  readonly type: ShaderType;
  readonly builtin?: string;
  readonly location?: number;
}
```

## Instance properties

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

**`type` read only `ShaderType`**

**`builtin` optional read only `string`**

**`location` optional read only `number`**

## Source

[`src/core/ir/nodes/entry-and-directive.ts`, line 15](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/nodes/entry-and-directive.ts#L15), at commit af54ddad5
