SD0020
Core code
module validation failed
The registry text and every compiler message on these pages are the compiler's own English.
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 { return { pos: vec4(0., 0., 0., 1.), uv: vec2(0., 0.) }}
@fragmentexport function fs(uv: location<1, vec2>): vec4 { return vec4(uv, 0., 1.)} TS8010 error, line 13: fs's parameter "uv" reads @location(1), which "vs" does not produce.
See also
Source
Where the compiler raises this code at commit af54ddad5, one line per file: