Crate egui_directx11

Crate egui_directx11 

Source
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::new and render the output from egui with Renderer::render.
RendererOutput
Part of egui::FullOutput that is consumed by Renderer::render.

Functions§

split_output
Convenience method to split a egui::FullOutput into the RendererOutput part and other parts for platform integration.