Vulkano exposes Vulkan through Rust types with compile-time and runtime checks intended to prevent invalid API use. Crates cover shaders, task graphs, and utility helpers.
Overview
Vulkano wraps Vulkan for Rust projects that need low-level GPU access with stronger safety guarantees than raw FFI. Non-unsafe code paths aim to respect valid usage rules, catching many mistakes at compile time or via runtime validation.
GPU synchronization such as semaphores and submission dependencies can be managed automatically, while still allowing advanced users to customize behavior through unsafe traits. Convenience helpers reduce boilerplate compared to manual Vulkan calls.
Workspace crates include core vulkano, vulkano-shaders with the shader! macro, vulkano-taskgraph for dependency graphs, and vulkano-util for device and swapchain setup. Examples progress from minimal programs through triangles and fractals.
Shader compilation relies on glslc on PATH, often from the Vulkan SDK, though full SDK installation is not mandatory on every platform. MoltenVK enables macOS, iOS, and tvOS targets.
APIs remain unstable with breaking releases every few months.
Key features
- Rust-safe Vulkan command wrappers
- Compile-time and runtime usage checks
- Automatic GPU synchronization helpers
- shader! macro for SPIR-V compilation
- Task graph crate for ordered GPU work
- Utility helpers for devices and swapchains
- Examples from minimal draws to mandelbrot
Use cases
- Vulkan rendering engines in Rust
- Graphics research requiring explicit GPU control
- Games needing custom pipelines without C++
- Cross-platform GPU code with MoltenVK