---
title: "WGSL_BUILTIN_NAMES: constant in Layout, TypeShade API"
description: "WGSL_BUILTIN_NAMES, a constant in Layout. Every WgslBuiltinName value as a runtime array."
url: https://typeshade.dev/api/wgslbuiltinnames/
language: en
---

# `WGSL_BUILTIN_NAMES`

Constant in Layout

Every WgslBuiltinName value as a runtime array.

`import { WGSL_BUILTIN_NAMES } from 'typeshade/core/ir'`

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

## Syntax

```ts
const WGSL_BUILTIN_NAMES: readonly WgslBuiltinName[]
```

## Description

The type above is a type-only union with no runtime witness, so a caller that needs the vocabulary at runtime — the compiler front end’s `@builtin(...)` allow-list check, or an editor’s completion/hover list — reads this instead of retyping the literals. Kept immediately next to the type it mirrors so the two are edited together; `language-service/ambient.test.ts` parses this file’s AST and cross-checks this array against the `WgslBuiltinName` union itself.

## See also

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

## Source

[`src/core/sot.ts`, line 160](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/sot.ts#L160), at commit af54ddad5
