imgui-vulkan-renderer-rs
Vulkan renderer for Dear ImGui via the imgui Rust bindings and ash.
Pair with imgui-glfw-rs for a complete GLFW + Vulkan + Dear ImGui integration.
Usage
Add to your Cargo.toml:
[]
= "0.1"
Then in your code:
use Context;
use ;
let mut imgui = create;
let create_info = RendererCreateInfo ;
let mut renderer = new
.expect;
// In your main loop, after building the imgui frame:
let draw_data = imgui.render;
renderer.render.unwrap;
Requirements
- Vulkan 1.0 or later
- A valid
ash::Deviceand compatibleVkRenderPasswhen callingRenderer::new - A command buffer in the recording state inside a compatible render pass when calling
Renderer::render
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.