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 26de7be8.

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 276, at commit 26de7be8

Edit this page Report a problem