Expand description
egui-directx11: a Direct3D11 renderer for egui.
This crate aims to provide a minimal set of features and APIs to render
outputs from egui using Direct3D11. We assume you to be familiar with
developing graphics applications using Direct3D11, and if not, this crate is
not likely useful for you. Besides, this crate cares only about rendering
outputs from egui, so it is all your responsibility to handle things
like setting up the window and event loop, creating the device and swap
chain, etc.
This crate is built upon the official Rust bindings of Direct3D11 and DXGI
APIs from the windows crate maintained by
Microsoft. Using this crate with
other Direct3D11 bindings is not recommended and may result in unexpected
behavior.
To get started, you can check the Renderer struct provided by this
crate. You can also take a look at the example, which demonstrates all you need to do to set up a minimal application
with Direct3D11 and egui. This example uses winit for window management
and event handling, while native Win32 APIs should also work well.
Structs§
- Renderer
- The core of this crate. You can set up a renderer via
Renderer::newand render the output fromeguiwithRenderer::render. - Renderer
Output - Part of
egui::FullOutputthat is consumed byRenderer::render.
Functions§
- split_
output - Convenience method to split a
egui::FullOutputinto theRendererOutputpart and other parts for platform integration.