WGSL_BUILTIN_NAMES
On this page

WGSL_BUILTIN_NAMES

Constant in Layout

Every WgslBuiltinName value as a runtime array.

import { WGSL_BUILTIN_NAMES } from 'typeshade'

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

Syntax

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

Source

src/core/sot.ts, line 158, at commit 26de7be8

Edit this page Report a problem