emscripten icon indicating copy to clipboard operation
emscripten copied to clipboard

WebGPU new Surface API

Open Olle-Lukowski opened this issue 1 year ago • 4 comments

So, ever since https://github.com/webgpu-native/webgpu-headers/pull/203, the SwapChain API was merged with the Surface API. I want to use WebGPU for my project and was wondering if anyone is working on making emscripten compatible with the new webgpu.h? If not, I could try to help out, even though I haven't contributed before.

Olle-Lukowski avatar Apr 11 '24 16:04 Olle-Lukowski

No one is working on it right now. Contribution would be welcome - I'm happy to give pointers (you can also find me on Matrix chat @kainino:matrix.org).

Dawn recently implemented the surface API so we're definitely ready to catch Emscripten up to be compatible.

kainino0x avatar Apr 12 '24 05:04 kainino0x

@kainino0x Can you share pointers as I'm also working on updating our cross-platform app to use the new surface API? Right now, it works only with native, not emscripten. See https://github.com/beaufortfrancois/webgpu-cross-platform-app/pull/7

I'd be happy to help on that front.

beaufortfrancois avatar May 13 '24 13:05 beaufortfrancois

@eliemichel FYI

beaufortfrancois avatar May 13 '24 13:05 beaufortfrancois

@kainino0x I have a draft PR at https://github.com/emscripten-core/emscripten/pull/21939 which we can use to specify the shape of the Surface API in Emscripten.

beaufortfrancois avatar May 14 '24 11:05 beaufortfrancois