Andre Weissflog
Andre Weissflog
I spotted two typos in the readme but I'll just fix them directly.
I don't know Nim's memory management well enough to remote-diagnose the problem (I *guess* it's related to Nim's automatic memory management, which tbh is quite opaque to me). But maybe...
Just a couple of tidbits before I'll get around to actually try the result on Windows: Slightly different scenario (a Zig+sokol project with a build.zig), but in the pacman.zig project...
Btw that cross-compiled pacman exectuable (via `zig build -Dtarget=x86_64-windows`) works on my Windows 10 laptop.
Thanks for putting time into this. I'll need some time to have a thorough look, but definitely looks promising.
FYI I haven't forgotten about this PR. I *might* split the idea into smaller pieces though (first getting rid of MTKView, then add WebGPU support).
Step 1: I have moved the WebGPU specific code in sokol_app.h out of the Emscripten ifdefs and in front of all other backends, it's part of this PR: https://github.com/floooh/sokol/pull/1283 (also...
Step 2: I WebGPU backend on macos (logging is still missing): https://github.com/floooh/sokol/pull/1326
Ok, all native desktop platforms now support webgpu: https://github.com/floooh/sokol/pull/1326 Closing this PR.