feat: use webgl backend when webgpu is not available

This commit is contained in:
2026-10-07 10:46:35 +02:00
parent 437a7249f4
commit 553a486d79
12 changed files with 1317 additions and 428 deletions
+3 -2
View File
@@ -46,8 +46,9 @@
const msg = (err && err.message) || String(err);
if (!msg.includes("Using exceptions for control flow")) {
document.getElementById("loading_text").innerHTML =
"<p>Failed to start. This app needs a WebGPU-capable browser " +
"(recent Chrome/Edge, Firefox, or Safari 26+).</p>";
"<p>Failed to start. This app needs WebGPU (recent Chrome/Edge, " +
"Firefox, or Safari 26+) or, in builds with the <code>webgl</code> " +
"feature, WebGL2 with float render targets.</p>";
console.error(err);
}
});