#egui #d3d11 #directx-11 #dx11

egui-directx11

This crate provides a minimal Direct3D11 renderer for egui

4 releases (2 breaking)

new 0.4.0 Apr 21, 2024
0.3.1 Apr 19, 2024
0.3.0 Mar 30, 2024
0.2.0 Mar 23, 2024

#291 in GUI

Download history 123/week @ 2024-03-18 143/week @ 2024-03-25 65/week @ 2024-04-01

331 downloads per month

MIT/Apache

29KB
549 lines

egui-directx11: a minimal Direct3D11 renderer for egui

This crate aims to provide a minimal set of features and APIs to render outputs from egui using Direct3D11.

Quick Start

There is an egui-demo 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.

Considerations

This crate is a successor to egui-d3d11, which is no longer maintained and has certain issues or inconvenience in some cases.

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.

This crate is in early development. It should work in most cases but may lack certain features or functionalities.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

See LICENSE-APACHE and LICENSE-MIT.

Dependencies

~146MB
~2.5M SLoC