What is webGPU support in Emscripten? #15645
-
In Emscripten release notes , v1.39.8: 02/14/2020
so In Emscripten, What is webGPU support ? support GPU compute ? and how i use it to calculation of acceleration matrix ? if there is some demo ? Another question : Whether Emscripten supports WebGPU rendering ? and how i use it to improved rendering performance ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Dawn is a C++ implementation of WebGPU used in Chromium. It can be used to target WebGPU in C and C++ applications that can then be ported to WebAssembly using Emscripten and automatically take advantage of WebGPU in the browser. so the Dawn support webgpu renderPipeline ? |
Beta Was this translation helpful? Give feedback.
-
WebGPU support in Emscripten is the implementation of WebGPU is still under development and not yet exposed by default in browsers. JavaScript WebGPU samples: https://austin-eng.com/webgpu-samples/ WebGPU support in Emscripten doesn't affect or enhance any applications that aren't using themselves using WebGPU directly. So you won't get improved rendering performance/features without adding engine support for a WebGPU rendering backend. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Where can find the document about (T▽T) |
Beta Was this translation helpful? Give feedback.
WebGPU support in Emscripten is the implementation of
webgpu.h
(https://github.com/webgpu-native/webgpu-headers/blob/main/webgpu.h) on top of the browser-exposed WebGPU API (https://gpuweb.github.io/gpuweb/).WebGPU is still under development and not yet exposed by default in browsers.
More info and sample links here: https://github.com/gpuweb/gpuweb/wiki/Implementation-Status#materials
JavaScript WebGPU samples: https://austin-eng.com/webgpu-samples/
Extremely minimal demo of an application using webgpu.h to target web through Emscripten: https://github.com/kainino0x/webgpu-cross-platform-demo
WebGPU support in Emscripten doesn't affect or enhance any applications that aren't using thems…