Crates.io | imgui-dx11-renderer |
lib.rs | imgui-dx11-renderer |
version | 0.8.0 |
source | src |
created_at | 2020-07-19 21:43:02.794144 |
updated_at | 2022-05-07 10:35:21.172681 |
description | DirectX 11 renderer for the imgui crate |
homepage | https://github.com/Veykril/imgui-dx11-renderer |
repository | https://github.com/Veykril/imgui-dx11-renderer |
max_upload_size | |
id | 267017 |
size | 74,663 |
DirectX 11 renderer for imgui-rs.
let device: ID3D11Device = ...;
let imgui: imgui::Context = ...;
let mut renderer = imgui_dx11_renderer::Renderer::new(&mut imgui, &device).expect("imgui dx11 renderer creation failed");
// rendering loop
let ui = imgui.frame();
// build your window via ui here
...
// then to render call
renderer.render(ui.render()).expect("imgui rendering failed");
The renderer backs up and reapplies the majority of the d3d11 rendering state when invoked.
The crate is documented but imgui-rs doesn't currently build on docs.rs for the windows target. Due to this one has to either build it themselves or look into the source itself.
Licensed under the MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)