thirdroom icon indicating copy to clipboard operation
thirdroom copied to clipboard

webgpu for web and native

Open gedw99 opened this issue 2 years ago • 2 comments

I am using webgpu for web and native.

I was wondering if there is interest in this ?

The WASM runners can easily be integrated client side

gedw99 avatar Jun 12 '23 09:06 gedw99

Not sure exactly what you mean by this? We would like to write a WebGPU renderer at some point, but it's quite a bit of work. We likely would not use WASM for this.

robertlong avatar Jun 12 '23 17:06 robertlong

i am using this: https://github.com/rajveermalviya/go-webgpu. Its using a rust webgpu lib and its quite fast.

https://github.com/rajveermalviya/gamen is the window layer. Works on web, desktop and native. For web its wasm of course.

Golang has 2 different compilers for compiling to wasm. Tinygo and go. go 1.21.1 will have compliant WASI. There is now work towards WASIX also.

I am writing a 2D Scene graph for it, so you can describe forms, text, lists, scrolling with it.

But the idea i have was that the third room scene graph could be the 3d scene graph. doc: https://thirdroom.io/docs/guides/websg/

gedw99 avatar Jun 13 '23 07:06 gedw99