4 ms·
What kind of graphics libraries were you looking for?
by kvark 6y ago
What kind of graphics libraries were you looking for?
- benrbray 6y agoJust basic, stable support for OpenGL / Vulkan. My reading from ~January of this year was that there were several competing methods for graphics support in Rust. I tried a few and the boilerplate was quite a bit more than expected, and I was unsuccessful getting the available samples to run on my Linux machine. Admittedly, I know nothing about what's actually going on behind the scenes when it comes to graphics + Rust. Just my first impressions as an outsider. I found the existing libraries quite difficult to get started with. (I'm someone who doesn't know much Rust and is waiting for some of this functionality to mature -- someone already invested in Rust is certainly in a better position to take advantage of the existing graphics support)
- kvark 6y agoOk, in this case, I think the situation is fairly good. De-facto standard for raw Vulkan in Rust is Ash [1], and raw GL can be worked with GL-rs [2]. It's when you go higher levels where things start diverging more. [1] https://github.com/MaikKlein/ash/ [2] https://github.com/brendanzab/gl-rs
- benrbray 6y agoThanks! I think I overlooked those before--last time I got tangled up in gfx-hal. I'll give these a try!
- kvark 6y agoThere is nothing wrong with gfx-hal. I care deeply about it, and wgpu implementation is based on top. It's just for users who need portability and performance, while Ash gives you close to raw access to Vukan.