From 6e4970d79799dd7dc1ba2c2fd3987f4454ddc012 Mon Sep 17 00:00:00 2001 From: Derek Schuff Date: Tue, 5 May 2026 15:49:22 +0000 Subject: [PATCH 1/3] Add a WebGPU page to porting with a link to a tutorial. --- .../porting/multimedia_and_graphics/WebGPU-support.rst | 9 +++++++++ .../docs/porting/multimedia_and_graphics/index.rst | 1 + 2 files changed, 10 insertions(+) create mode 100644 site/source/docs/porting/multimedia_and_graphics/WebGPU-support.rst diff --git a/site/source/docs/porting/multimedia_and_graphics/WebGPU-support.rst b/site/source/docs/porting/multimedia_and_graphics/WebGPU-support.rst new file mode 100644 index 0000000000000..774d8db557867 --- /dev/null +++ b/site/source/docs/porting/multimedia_and_graphics/WebGPU-support.rst @@ -0,0 +1,9 @@ +.. _WebGPU-support: + +============================ +Using WebGPU in Emscripten +============================ + +Emscripten supports using WebGPU via `Emdawnwebgpu `_, +an external Emscripten port that implement's `Daswn's `_ C API on top of WebGPU. +See `This article `_ for an example of how to use it. diff --git a/site/source/docs/porting/multimedia_and_graphics/index.rst b/site/source/docs/porting/multimedia_and_graphics/index.rst index 88ee7e1b050af..ecd7ee61de415 100644 --- a/site/source/docs/porting/multimedia_and_graphics/index.rst +++ b/site/source/docs/porting/multimedia_and_graphics/index.rst @@ -10,6 +10,7 @@ This section contains articles about Emscripten's support for graphics and audio .. toctree:: :maxdepth: 1 + WebGPU-support EGL-Support-in-Emscripten OpenGL-support From 6b2ba604f1fe4fead0c60b68112fb0e42ce1f43a Mon Sep 17 00:00:00 2001 From: Kai Ninomiya Date: Wed, 6 May 2026 11:50:44 +0200 Subject: [PATCH 2/3] address comments, and add note that Emdawnwebgpu link has docs --- .../porting/multimedia_and_graphics/WebGPU-support.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/site/source/docs/porting/multimedia_and_graphics/WebGPU-support.rst b/site/source/docs/porting/multimedia_and_graphics/WebGPU-support.rst index 774d8db557867..95590be7aa5f4 100644 --- a/site/source/docs/porting/multimedia_and_graphics/WebGPU-support.rst +++ b/site/source/docs/porting/multimedia_and_graphics/WebGPU-support.rst @@ -1,9 +1,10 @@ .. _WebGPU-support: -============================ +========================== Using WebGPU in Emscripten -============================ +========================== Emscripten supports using WebGPU via `Emdawnwebgpu `_, -an external Emscripten port that implement's `Daswn's `_ C API on top of WebGPU. -See `This article `_ for an example of how to use it. +an external Emscripten port that implements `Dawn's `_ C API on top of WebGPU. +See the Emdawnwebgpu link for documentation, and +`this article `_ for an example of how to use it. From 49f647221dfb36495f80651ff3c12fa0c52a78a8 Mon Sep 17 00:00:00 2001 From: Kai Ninomiya Date: Wed, 6 May 2026 11:54:00 +0200 Subject: [PATCH 3/3] Also link to webgpu.h --- .../docs/porting/multimedia_and_graphics/WebGPU-support.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/source/docs/porting/multimedia_and_graphics/WebGPU-support.rst b/site/source/docs/porting/multimedia_and_graphics/WebGPU-support.rst index 95590be7aa5f4..a48a737ecff82 100644 --- a/site/source/docs/porting/multimedia_and_graphics/WebGPU-support.rst +++ b/site/source/docs/porting/multimedia_and_graphics/WebGPU-support.rst @@ -5,6 +5,7 @@ Using WebGPU in Emscripten ========================== Emscripten supports using WebGPU via `Emdawnwebgpu `_, -an external Emscripten port that implements `Dawn's `_ C API on top of WebGPU. +an external Emscripten port that implements a `Dawn `_-like version of the +`webgpu.h `_ C API, on top of the browser's WebGPU. See the Emdawnwebgpu link for documentation, and `this article `_ for an example of how to use it.