handling WebGPU on Win and macOS
Some code to handle native Dawn WebGPU in sokol_app, not ready to merge but perhaps a starting point
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 the code has been fixed for the latest Dawn webgpu.h API via emdawnwebgpu, e.g. the code is now compatible between Dawn and Emscripten.
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.