TS8015
Front-end code BACKEND
A backend that refused to emit a module the front end accepted. The message is the backend's own.
The registry has no documentation comment for this constant, so the line above is written by this site from the messages the compiler raises it with.
The registry text and every compiler message on these pages are the compiler's own English.
Example
"use typeshade"
@fragmentexport function main(uv: location<0, vec2>): vec4 { return vec4(uv, 0., 1.)}
@fragmentexport function tinted(uv: location<0, vec2>): vec4 { return vec4(uv, 0.5, 1.)}Compiled at build time against the pinned compiler, this program gets:
TS8015 warning, line 1: Backend emit failed: glsl-es300: the fragment stage has 2 entries (main_, tinted) and a GLSL ES 3.00 shader has one main(); name the one to emit with emitGlslStages's fragmentEntry option
How to fix it
The same program, corrected. It compiles with no diagnostic.
"use typeshade"
@fragmentexport function main(uv: location<0, vec2>): vec4 { return vec4(uv, 0., 1.)}The rule this enforces
- Rule 12.3 Test
- Severity must follow the target’s role: a program WGSL refuses must be an error; a shortfall of GLSL ES 3.00 on a module with a render entry must be a warning that leaves
wgslin place; a compute-only module’s GLSL shortfall must be no diagnostic at all.
See also
Source
Where the compiler raises this code at commit af54ddad5, one line per file: