---
title: "VertexAttr: interface in Reflection, TypeShade API reference"
description: "VertexAttr, an interface in Reflection. One @location input of the module's @vertex entry point, from a loose parameter or a located struct field."
url: https://typeshade.dev/api/vertexattr/
language: en
---

# `VertexAttr`

Interface in Reflection

One `@location` input of the module's `@vertex` entry point, from a loose parameter or a located struct field.

`import type { VertexAttr } from 'typeshade'`

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

## Syntax

```ts
interface VertexAttr {
  readonly name: string;
  readonly emitted: string;
  readonly location: number;
  readonly type: string;
  readonly offset: number;
}
```

## Description

Attributes follow declaration order, and each `offset` is the end of the previous attribute. These formats use 4-byte lanes and require no padding between attributes. Reordering inputs can change their offsets. `type` is the DSL type key (the string [`typeKey`](https://typeshade.dev/api/typekey/) returns), the same spelling `StructLayout.fields[].type` uses.

## Instance properties

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

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

The parameter’s name in the emitted text ([Rule 11.10](https://typeshade.dev/reference/rules/11-10/)).

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

The location, written (`location<n, T>`) or given by the compiler ([Rule 6.6](https://typeshade.dev/reference/rules/6-6/), change 0135).

**`type` read only `string`**

**`offset` read only `number`**

## See also

- [`typeKey`](https://typeshade.dev/api/typekey/)

## Source

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