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/core/ir'

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

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 160, at commit af54ddad5

Edit this page Report a problem