mirror of
https://github.com/storytold/craft-anything.git
synced 2026-11-19 22:10:50 +01:00
The window opens on Macs whose Metal compiler rejects the shader language version wgpu takes from the macOS version: a patched wgpu-hal 30.0.1 (identical to the released crate except for this probe) compiles a tiny kernel with each version up to the OS's and keeps the first one accepted. A lost device on a Mac no longer points at the Windows-only software renderer setting (fixes #742).
21 lines
468 B
HTML
21 lines
468 B
HTML
<html>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
</head>
|
|
<body>
|
|
<canvas id="canvas" width="640" height="400"></canvas>
|
|
<script>
|
|
var Module = {
|
|
canvas: document.getElementById("canvas"),
|
|
preRun: [
|
|
function () {
|
|
ENV.RUST_LOG = "debug";
|
|
},
|
|
],
|
|
};
|
|
</script>
|
|
<script src="raw-gles.js"></script>
|
|
</body>
|
|
</html>
|