SD0109
Core code
a fragment-only builtin is reachable from a vertex or compute entry
The registry text and every compiler message on these pages are the compiler's own English.
When it fires
The hint is deliberately generic and enumerates no fix family: the per-builtin fix lives in the rule's FRAGMENT_ONLY_IDS table (the single fix-authority) and reaches the reader through the diagnostic's own message. Enumerating families here would re-create the untested sync contract that table replaced — one new family and the catalogue would lie again.
In the front end
A "use typeshade" file never reaches this check with the same mistake: the front end refuses it first, under its own code. This program, compiled at build time, gets:
"use typeshade"
interface VsOut { pos: builtin<"position"> uv: location<0, vec2>}
@vertexexport function vs(i: builtin<"vertex_index">): VsOut { const x = f32(i) return { pos: vec4(x, dpdx(x), 0., 1.), uv: vec2(0., 0.) }}
@fragmentexport function fs(v: VsOut): vec4 { return vec4(v.uv, 0., 1.)}TS8099 error, line 9: "dpdx" is only valid in a fragment shader; "vs" is a vertex entry.
How to fix it
The registry's hint: the fix is per-builtin and named in the diagnostic message itself — the fragment-only-builtin rule table (FRAGMENT_ONLY_IDS) is the single fix-authority
See also
-
TS8099UNSUPPORTED - The catch-all for a diagnostic whose site does not yet deserve its own code. It stays parked at TS8099, past the sequential range.
Source
Where the compiler raises this code at commit af54ddad5, one line per file: