Earlier quoted context omitted.
Cross platform. You could build a rust app with a WebGPU target that runs across web and native.
Ah nice, I see. Any particular reason for Rust being used? Just curious, because I would (naively) expect to see similar projects with Golang, C++ etc but I really only see Rust.
Wgpu-0.10 released: WebGPU implementation now in pure Rust
41–50 of 86 posts
Re: Wgpu-0.10 released: WebGPU implementation now in pure Rust
#42Earlier quoted context omitted.
Cross platform. You could build a rust app with a WebGPU target that runs across web and native.
Ah nice, I see. Any particular reason for Rust being used? Just curious, because I would (naively) expect to see similar projects with Golang, C++ etc but I really only see Rust.
Google has an implementation of WebGPU called Dawn, which is quite impressive. It's written in C++.
Re: Wgpu-0.10 released: WebGPU implementation now in pure Rust
#43Earlier quoted context omitted.
Does wgpu finally support OpenGL?
Yeah, we support OpenGL ES-3.0 with a few major caveats.
Re: Wgpu-0.10 released: WebGPU implementation now in pure Rust
#44Earlier quoted context omitted.
Ah nice, I see. Any particular reason for Rust being used? Just curious, because I would (naively) expect to see similar projects with Golang, C++ etc but I really only see Rust.
This implementation is developed by firefox (at least, last I checked). Google has an implementation along similar lines in C++ called dawn, and I'm pretty sure webkit plans to use dawn. So you see them in Rust/C++, but no one has written an implementation in go afaik.
Re: Wgpu-0.10 released: WebGPU implementation now in pure Rust
#45Earlier quoted context omitted.
Cross platform. You could build a rust app with a WebGPU target that runs across web and native.
Ah nice, I see. Any particular reason for Rust being used? Just curious, because I would (naively) expect to see similar projects with Golang, C++ etc but I really only see Rust.
Re: Wgpu-0.10 released: WebGPU implementation now in pure Rust
#46Earlier quoted context omitted.
Ah nice, I see. Any particular reason for Rust being used? Just curious, because I would (naively) expect to see similar projects with Golang, C++ etc but I really only see Rust.
This implementation is developed by firefox (at least, last I checked). Google has an implementation along similar lines in C++ called dawn, and I'm pretty sure webkit plans to use dawn. So you see them in Rust/C++, but no one has written an implementation in go afaik.
Plus, using system libraries (DirectX, Villain, Metal, OpenGL) from Go would be a pain and possibly suffer worse from the FFI penalties than just using a higher level library written in Rust/C++ to begin with.
Re: Wgpu-0.10 released: WebGPU implementation now in pure Rust
#47Earlier quoted context omitted.
This implementation is developed by firefox (at least, last I checked). Google has an implementation along similar lines in C++ called dawn, and I'm pretty sure webkit plans to use dawn. So you see them in Rust/C++, but no one has written an implementation in go afaik.
For all we know, Safari on Windows(!) is going to use Dawn. But anything on Apple platforms isn't quite clear. They may get their own implementation.
Re: Wgpu-0.10 released: WebGPU implementation now in pure Rust
#48Earlier quoted context omitted.
> platforms APIs still alive. The APIs that currently exist are not the cause of the potential issue I am raising.
And without knowing what those future APIs are like, you can't design a future-proof backend API to handle it. You'll design it for the past problems which will be different than future ones.
For example using drawTriangle(p1, p2, p3) instead of drawPolys(TYPE_TRIANGLE, point_list, n_points). The former is unequivocally easier to implement, the latter requires more complexity.
Re: Wgpu-0.10 released: WebGPU implementation now in pure Rust
#49Earlier quoted context omitted.
And without knowing what those future APIs are like, you can't design a future-proof backend API to handle it. You'll design it for the past problems which will be different than future ones.
What you can do is design a backend for your project that is less general and tailored to your specific problems so as to increase the likelihood that it is easier to implement on new platforms that may arise. This is why I mentioned the “rule of least power” For example using drawTriangle(p1, p2, p3) instead of drawPolys(TYPE_TRIANGLE, point_list, n_points). The former is unequivocally easier to implement, the latte…
Re: Wgpu-0.10 released: WebGPU implementation now in pure Rust
#50Earlier quoted context omitted.
Yeah, we support OpenGL ES-3.0 with a few major caveats.
That’s awesome. Wgpu did not support a single Linux machine I tried it on, all with various hardware/driver combos, back when OpenGL wasn’t available and later when it was first previewed. It was the only reason I used a different abstraction.