Skip to content

Commit 47317b6

Browse files
dschuffkainino0x
andauthored
Add a WebGPU page to porting with a link to a tutorial (#26862)
Co-authored-by: Kai Ninomiya <kainino@chromium.org>
1 parent 4ceac4e commit 47317b6

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.. _WebGPU-support:
2+
3+
==========================
4+
Using WebGPU in Emscripten
5+
==========================
6+
7+
Emscripten supports using WebGPU via `Emdawnwebgpu <https://dawn.googlesource.com/dawn/+/refs/heads/main/src/emdawnwebgpu/pkg/>`_,
8+
an external Emscripten port that implements a `Dawn <https://dawn.googlesource.com/dawn>`_-like version of the
9+
`webgpu.h <https://github.com/webgpu-native/webgpu-headers/>`_ C API, on top of the browser's WebGPU.
10+
See the Emdawnwebgpu link for documentation, and
11+
`this article <https://developer.chrome.com/docs/web-platform/webgpu/build-app>`_ for an example of how to use it.

site/source/docs/porting/multimedia_and_graphics/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This section contains articles about Emscripten's support for graphics and audio
1010
.. toctree::
1111
:maxdepth: 1
1212

13+
WebGPU-support
1314
EGL-Support-in-Emscripten
1415
OpenGL-support
1516

0 commit comments

Comments
 (0)