INTRINSICS
On this page

INTRINSICS

Constant in Backends

The spelling of each builtin id on each target, keyed by id.

import { INTRINSICS } from 'typeshade'

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

Syntax

const INTRINSICS: Readonly<Record<string, Spelling>>

Description

Only builtins whose spelling differs between WGSL and GLSL ES 3.00 have an entry; a builtin with no entry is spelled the same way on both targets, as name(args). The wgsl and glsl members of an entry each take the rendered argument expressions and return the call as source text.

Source

src/core/intrinsics.ts, line 351, at commit af54ddad5

Edit this page Report a problem