Vulkano

Safe Rust wrapper around Vulkan.

Usage

Add to your Cargo.toml:

toml vulkano = "0.1"

Note that this library doesn't handle creating and managing windows. In order to render to a window, you will have to create that window separately and use an unsafe function of this library to link to it.

This only concerns windows. Safe fullscreen rendering is possible with this library alone.

Shaders handling

The API of vulkano related to shader modules is entirely unsafe. This is because you're not supposed to use it directly.

Instead, you are encouraged to use the vulkano-shaders crate which compiles and analyses your shader, and generates Rust code that wraps around vulkano's API.

Thanks to this, vulkano can provide compile-time guarantees about your specialization constants, push constants, descriptor sets, vertex layouts, and so on.