Is anyone familiar with WebGPU?

33 views
Skip to first unread message

Gonzalo Garramuño

unread,
Jun 3, 2023, 7:28:49 PM6/3/23
to fltkc...@googlegroups.com
Kitware (of CMake fame among others) is starting experimenting with
WebGPU as a replacement to OpenGL in their VTK library.

https://www.kitware.com/vtk-webgpu-on-the-desktop/

Is this on anyone's radar? If this ends up working, it could be the
answer to the mess Apple, Microsoft and the Khronos group made with all
their competing APIs and it could bring the web and the desktop together
at last.

--
Gonzalo Garramuño
ggar...@gmail.com

Lauri Kasanen

unread,
Jun 4, 2023, 12:57:27 AM6/4/23
to fltkc...@googlegroups.com
I don't really see the point. "We have to use translation libraries for
WebGPU" is little improvement over "we have to use translation
libraries for opengl". At least opengl is standard and has wide support.

- Lauri

Mohammed

unread,
Jun 4, 2023, 11:22:20 AM6/4/23
to fltkc...@googlegroups.com
Hi
I was able to get FLTK to run with WebGPU using the wgpu crate (Rust). It’s an implementation of the WebGPU api in Rust. It actually doesn’t require anything but passing the window’s raw handle to wgpu, then using wgpu calls to eventually draw. 


Mohammed

Sent from my iPhone

On 4 Jun 2023, at 07:57, Lauri Kasanen <ca...@gmx.com> wrote:

On Sat, 3 Jun 2023 20:28:45 -0300
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/20230604080008.fcdce7195f34b78cb3c1d526%40gmx.com.

Mohammed

unread,
Jun 4, 2023, 11:28:58 AM6/4/23
to fltkc...@googlegroups.com
That said, the Rist implementation of WebGPU is still slower than OpenGL and consumes much more memory. So it’s still early to see an advantage over OpenGL. Its advantage is that it’s getting support from browsers which will only support webgl and webgpu. Also with Apple deprecating OpenGL, it’s unclear how long it’s gonna last. 

Sent from my iPhone

On 4 Jun 2023, at 18:22, Mohammed <may64...@gmail.com> wrote:

Hi

Gonzalo Garramuño

unread,
Jun 4, 2023, 6:47:46 PM6/4/23
to fltkc...@googlegroups.com

El 4/6/23 a las 12:28, Mohammed escribió:
> Also with Apple deprecating OpenGL, it’s unclear how long it’s gonna
> last.

Thanks for the head's up Mohammed.

I think the idea is that Apple is supporting WebGPU, at least on their
browser (Safari).  Hopefully they will support it on the desktop too.

--
Gonzalo Garramuño
ggar...@gmail.com

Reply all
Reply to author
Forward
0 new messages