Emscripten Binding for WebGPU.

1,012 views
Skip to first unread message

Sohan Jyoti Ghosh

unread,
May 28, 2020, 4:01:47 AM5/28/20
to Dawn Graphics
Hi,

With this support, 
can a native library (C/C++) using Vulkan (and SPIRV shaders)  be converted to wasm module ? 

As I understand, the WebGL support in Emscripten meant that native OpenGLES libs could have been converted to wasm modules by mapping  OpenGL calls to WebGL calls. 
Is it the same with Vulkan and WebGPU ?

Br,
Sohan

Corentin Wallez

unread,
May 28, 2020, 4:35:10 AM5/28/20
to Sohan Jyoti Ghosh, Dawn Graphics
Hey Sohan,

With the PR you pointed out, an application targeting WebGPU in native using Dawn can be WASMed to a module that targets WebGPU the JS API.

To support Vulkan you'd need a library that translates Vulkan to WebGPU first, and then WASM that. I don't think any such library exists yet.

Cheers,

Corentin

--
You received this message because you are subscribed to the Google Groups "Dawn Graphics" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dawn-graphic...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dawn-graphics/1d8a8399-d744-449f-8737-6d183eab2ccb%40googlegroups.com.

Sohan Jyoti Ghosh

unread,
May 28, 2020, 5:10:30 AM5/28/20
to Dawn Graphics
Thanks Corentin for the info. 

Br,
Sohan


On Thursday, May 28, 2020 at 11:35:10 AM UTC+3, Corentin Wallez wrote:
Hey Sohan,

With the PR you pointed out, an application targeting WebGPU in native using Dawn can be WASMed to a module that targets WebGPU the JS API.

To support Vulkan you'd need a library that translates Vulkan to WebGPU first, and then WASM that. I don't think any such library exists yet.

Cheers,

Corentin

On Thu, May 28, 2020 at 10:01 AM Sohan Jyoti Ghosh <soh...@chromium.org> wrote:
Hi,

With this support, 
can a native library (C/C++) using Vulkan (and SPIRV shaders)  be converted to wasm module ? 

As I understand, the WebGL support in Emscripten meant that native OpenGLES libs could have been converted to wasm modules by mapping  OpenGL calls to WebGL calls. 
Is it the same with Vulkan and WebGPU ?

Br,
Sohan

--
You received this message because you are subscribed to the Google Groups "Dawn Graphics" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dawn-g...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages