r/rust • u/Lyrapuff • Jun 16 '22
A video about drawing a Vulkan triangle with Rust
https://www.youtube.com/watch?v=_PNiRGIAfY41
Jun 16 '22
Isn't using wgpu in rust ideal for rendering purposes?
1
u/Lyrapuff Jun 16 '22
yeah, but I specifically wanted to learn Vulkan
→ More replies (1)1
1
u/HeavyRain266 Jun 23 '22
How do you compare them? Syntax? Being abstracted over multiple APIs? Given that it's evolving quickly, there is only one actual learning material except examples and e.g. veloren source code, bevy_render, iced_wgpu etc.
At the end of the day, verbosity and API stability is the price, which I'm ready to pay for not having to rewrite my code every X months because wgpu got breaking changes... also you abstract all that low level vulkan stuff anyways so it becomes the same level of usability but with tons of learning materials and possible bug fixes on stackoverflow (jk w.r.t SO).
2
Jun 23 '22
I mean wgpu is crossplatform and if implementation is good you kinda just compile the same code for every platform without rewriting and you can even use it on web. At least i think so
1
u/HeavyRain266 Jun 23 '22
Vulkan also is cross platform, you don't have to rewrite code for each platform as well, only difference is that, it doesn't work on the web without WebGPU. I really like wgpu as library but it's evolving too fast for my taste and you will have to most likely use version from master branch to encounter best performance, better wgsl syntax and possibly less bugs.
1
1
u/Endropioz Jun 19 '22
What the colorscheme? And what editor do you use?