egui-directx11

Crates.ioegui-directx11
lib.rsegui-directx11
version0.6.0
sourcesrc
created_at2024-03-23 11:40:09.72828
updated_at2024-10-01 11:04:32.407327
descriptionThis crate provides a Direct3D11 renderer for `egui`.
homepage
repositoryhttps://github.com/Nekomaru-PKU/egui-directx11
max_upload_size
id1183487
size94,205
Nekomaru (Nekomaru-PKU)

documentation

README

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.

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.

Project Status and Versioning Compatibility on windows and egui

This crate has been considered as general available without known issues since version 0.3.1. Though, it keeps bumping major version to follow major version bumps on its direct dependencies, namely windows and egui.

To select a version for this crate according to the windows and egui version your project uses, please check the table below:

egui-directx11 windows egui
0.6.0 0.58.0 0.29.x
0.5.0 0.58.0 0.28.x
0.4.0 0.56.0 0.27.x
0.3.1 0.54.0 0.27.x

Releases of this crate before 0.3.1 are considered premature and are not recommended to use.

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.

Commit count: 18

cargo fmt