sokol icon indicating copy to clipboard operation
sokol copied to clipboard

handling WebGPU on Win and macOS

Open hb3p8 opened this issue 1 year ago • 2 comments

Some code to handle native Dawn WebGPU in sokol_app, not ready to merge but perhaps a starting point

hb3p8 avatar Oct 21 '24 19:10 hb3p8

Thanks for putting time into this. I'll need some time to have a thorough look, but definitely looks promising.

floooh avatar Oct 22 '24 09:10 floooh

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).

floooh avatar Nov 19 '24 14:11 floooh

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.

floooh avatar Jun 15 '25 11:06 floooh

Step 2: I WebGPU backend on macos (logging is still missing): https://github.com/floooh/sokol/pull/1326

floooh avatar Sep 04 '25 11:09 floooh

Ok, all native desktop platforms now support webgpu: https://github.com/floooh/sokol/pull/1326

Closing this PR.

floooh avatar Sep 08 '25 16:09 floooh