---
title: "VertexLayout: interface in Reflection, TypeShade API"
description: "VertexLayout, an interface in Reflection. The vertex-buffer layout for a module's @vertex entry: every @location input and the interleaved…"
url: https://typeshade.dev/api/vertexlayout/
language: en
---

# `VertexLayout`

Interface in Reflection

The vertex-buffer layout for a module's `@vertex` entry: every `@location` input and the interleaved, tightly packed arrayStride they fill.

`import type { VertexLayout } from 'typeshade'`

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

## Syntax

```ts
interface VertexLayout {
  readonly attributes: readonly VertexAttr[];
  readonly arrayStride: number;
}
```

## Description

[`reflect`](https://typeshade.dev/api/reflect/) describes the first `@vertex` entry it finds in `module.funcs`; a module with more than one vertex entry point gets a `VertexLayout` for the one declared first. `Reflection.vertex` is `undefined` when the module has no `@location` vertex parameters.

## Instance properties

**`attributes` read only `readonly VertexAttr[]`**

**`arrayStride` read only `number`**

## See also

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

## Source

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