r/GraphicsProgramming • • Jun 16 '22

Video A video about drawing a Vulkan triangle with Rust

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

5 comments sorted by

1

u/s0lly Jun 16 '22

I can’t wrap my head around why I need to write 1000 LOC to draw a triangle

3

u/Lyrapuff Jun 16 '22

Well Vulkan is very explicit and in many things requires you to configure everything exactly the way you want it to behave, and these configurations are usually pretty cumbersome, but after a triangle drawing mesh is a lot faster

1

u/Deeku369 Jun 17 '22

Because GPUs and graphics programming == complex.

Vulkan is not optimized to draw a single triangle, but to setup complex rendering pipelines and have control over them on a granular level, to get the performance and features you need.

Compare this to OpenGL where the OpenGL driver does much more of these things automatically for you, but at the same time you are at the mercy of the OpenGL driver implementation.

3

u/AndreiDespinoiu Jun 17 '22

You are still at the mercy of the Vulkan driver implementation.

1

u/AndreiDespinoiu Jun 17 '22 edited Jun 17 '22

I wouldn't call any of this easy.

That merged "==" is just blasphemy. I think you'll always have to wonder if it's long enough.