INTRINSIC_BINDING_REFS
On this page

INTRINSIC_BINDING_REFS

Constant in Backends

The binding names an intrinsic's emitted text reads directly, keyed by intrinsic id, for the intrinsics whose spelling names a binding with no argument carrying it.

import { INTRINSIC_BINDING_REFS } from 'typeshade'

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

Syntax

const INTRINSIC_BINDING_REFS: Readonly<Record<string, readonly string[]>>

Description

Today that is f64Guard, whose fetch reads the _fp64 texture. Reference collection over the IR walks argument nodes, so it cannot see these names. A consumer that trims a shader stage down to the bindings it uses must also keep every binding listed here for each intrinsic call it keeps; otherwise the emitted GLSL reads a sampler the shader never declares, and the driver rejects it at compile time. Any intrinsic that hardcodes a binding name into its spelling needs a row here.

Source

src/core/intrinsics.ts, line 980, at commit 26de7be8

Edit this page Report a problem