r/rust • • Jun 16 '22

A video about drawing a Vulkan triangle with Rust

https://www.youtube.com/watch?v=_PNiRGIAfY4
9 Upvotes

14 comments sorted by

1

u/Endropioz Jun 19 '22

What the colorscheme? And what editor do you use?

1

u/Lyrapuff Jun 19 '22

Nordic and it's something from JetBrains

1

u/Endropioz Jun 19 '22

But on the start of the video it looks more like gruvbox material

1

u/Lyrapuff Jun 19 '22

oh, on the start it's monokai pro!

→ More replies (1)

1

u/[deleted] 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

1

u/[deleted] Jun 16 '22

Ok Vulkan is still cross-platform except i think MacOS because of metal

2

u/[deleted] Jun 16 '22

On macOS you can use MoltenVK

→ More replies (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

u/[deleted] 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

u/[deleted] Jun 23 '22

I forgot about vulkan being cross platform too, fair point