1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

New feature to support unity vertex layout requirement (#2493)

* Update mesh.rs

adjust Vertex layout

* add unity feature

* add unity feature

* document the `unity` feature flag

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
Hoping White
2023-02-04 22:33:41 +08:00
committed by GitHub
parent 53f8e4049f
commit 430cbe541c
3 changed files with 27 additions and 0 deletions

View File

@@ -63,6 +63,9 @@ mint = ["emath/mint"]
## Allow serialization using [`serde`](https://docs.rs/serde).
serde = ["dep:serde", "ahash/serde", "emath/serde", "ecolor/serde"]
## Change Vertex layout to be compatible with unity
unity = []
[dependencies]
emath = { version = "0.20.0", path = "../emath" }
ecolor = { version = "0.20.0", path = "../ecolor" }