erupt-bootstrap
Vulkan Bootstrapping library for Rust, inspired by vk-bootstrap.
- ✅ Instance creation
- ✅ Physical Device selection
- ✅ Device creation
- ✅ Getting queues
- ✅ Swapchain handling (courtesy of Ralith - thanks!)
Cargo Features
surface(enabled by default): Enables the use ofraw-window-handle.
Example
let entry = new.unwrap;
let instance_builder = new
.validation_layers
.request_debug_messenger
.require_surface_extensions
.unwrap;
let =
unsafe .unwrap;
let surface =
unsafe .unwrap;
let graphics_present = graphics_present;
let transfer = preferably_separate_transfer;
let device_features = new
.features;
let device_builder = new
.queue_family
.queue_family
.require_features
.for_surface;
let =
unsafe .unwrap;
let graphics_present = device_metadata
.device_queue
.unwrap
.unwrap;
let transfer = device_metadata
.device_queue
.unwrap
.unwrap;
For more examples, visit the git repo.
Licensing
This project is licensed under the zlib License.
vk-bootstrap, the inspiration of this project, is licensed under the MIT license.