# WebGPU

**URL:** <https://forum.malleable.systems/t/webgpu/63>\
**Category:** General\
**Created:** [3 May 2023 16:38 UTC](https://forum.malleable.systems/t/webgpu/63 "2023-05-03T16:38:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![akkartik](https://forum-cdn.malleable.systems/user_avatar/forum.malleable.systems/akkartik/32/43_2.png) [@akkartik](https://forum.malleable.systems/u/akkartik)\
**Post date:** [3 May 2023 16:38 UTC](https://forum.malleable.systems/t/webgpu/63/1 "2023-05-03T16:38:52Z")

</div>

> **[I want to talk about WebGPU](https://cohost.org/mcc/post/1406157-i-want-to-talk-about-webgpu)**
>
> WebGPU is the new WebGL. That means it is the new way to draw 3D in web browsers. It is, in my opinion, very good actually. It is so good I think it will also replace Canvas and become the new way to draw 2D in web browsers. In fact it is so good I...

---

<div class="post-metadata">

**Author:** ![jryans](https://forum-cdn.malleable.systems/user_avatar/forum.malleable.systems/jryans/32/7_2.png) [@jryans](https://forum.malleable.systems/u/jryans)\
**Post date:** [3 May 2023 18:11 UTC](https://forum.malleable.systems/t/webgpu/63/2 "2023-05-03T18:11:48Z")

</div>

WebGPU does seem like a nice increase in control over previous graphics APIs. It is a bit hard to imagine malleability with any of these canvas-based drawing approaches (since you lose the DOM), but perhaps there are ways to structure the program to retain some extensibility despite this.

---

<div class="post-metadata">

**Author:** ![akkartik](https://forum-cdn.malleable.systems/user_avatar/forum.malleable.systems/akkartik/32/43_2.png) [@akkartik](https://forum.malleable.systems/u/akkartik)\
**Post date:** [3 May 2023 18:55 UTC](https://forum.malleable.systems/t/webgpu/63/3 "2023-05-03T18:55:08Z")

</div>

Yeah, I have some similar concerns, but I’ve read some other stuff by the author that causes this endorsement to put WebGPU on my radar.

---

<div class="post-metadata">

**Author:** ![rektide](https://forum-cdn.malleable.systems/user_avatar/forum.malleable.systems/rektide/32/56_2.png) [@rektide](https://forum.malleable.systems/u/rektide)\
**Post date:** [9 May 2023 16:05 UTC](https://forum.malleable.systems/t/webgpu/63/4 "2023-05-09T16:05:34Z")

</div>

This was a great post. WebGPU is very interesting & very promising. I keep hoping someone will come up with a nice WebComponent model for running 3d graphics on the web, so the DOM can share in the experience, so it’s not all code-driven. There’s already [A-Frame](https://aframe.io/) and [LUME](https://lume.io/) which are probably both fine-ish options. I thought there was a nice Babylon.js option.

[message continues in next post, as i have more links]

---

<div class="post-metadata">

**Author:** ![rektide](https://forum-cdn.malleable.systems/user_avatar/forum.malleable.systems/rektide/32/56_2.png) [@rektide](https://forum.malleable.systems/u/rektide)\
**Post date:** [9 May 2023 16:06 UTC](https://forum.malleable.systems/t/webgpu/63/5 "2023-05-09T16:06:07Z")

</div>

By far the most interesting prospect to me is taking something like [Use.GPU](https://acko.net/blog/the-gpu-banana-stand/), which is already very tree based but incredibly flexible, but expressing it via actual DOM.

As other have warned, I definitely live in horror of the idea of apps themselves using WebGPU canvases to render themselves. The loss of structured malleable DOM is too deep a loss to be imagined. It was courteous of @jryans to highlight that eventually yes you could perhaps re-layer in structure, but my faith that such a thing would happen is slim: these efforts will almost certainly be _for developers_ sakes; it seems highly unlikely they will be _for users._

Replacing the DOM is the topic of Hixie’s [Towards a Modern Web Stack](https://docs.google.com/document/d/1peUSMsvFGvqD5yKh3GprskLC3KVdAlLGOsK6gFoEOD0/edit?pli=1&resourcekey=0-bPajpoo9IBZpG__-uCBE6w) and what Flutter’s web engine, CanvasKit does, both of which destroy the structured information of the page & turn it into a giant pixel-display.
