#egui #skia #skia-safe


egui_skia is a skia integration for the egui ui library. Render egui within a skia application or render skia in a egui application.

6 releases (3 breaking)

0.4.0 Oct 12, 2023
0.3.0 Feb 15, 2023
0.2.1 Jan 12, 2023
0.2.0 Dec 12, 2022
0.1.0 Aug 22, 2022

#339 in GUI

Download history 3/week @ 2024-02-20 18/week @ 2024-02-27 1/week @ 2024-03-05 5/week @ 2024-03-12 9/week @ 2024-03-26 31/week @ 2024-04-02

99 downloads per month

MIT license

448 lines

Skia backend for egui

This is a drawing backend for egui that uses skia-safe.


Have a look at the metal or cpu examples to get started.

Run the examples

cargo run --example metal --features winit,metal
cargo run --example cpu --features winit,cpu_fix
cargo run --example rasterize --features winit,cpu_fix

# Make sure sdl2 is installed
# Follow instructions here: https://github.com/Rust-SDL2/rust-sdl2
cargo run --example sdl2_opengl --features gl
cargo run --example sdl2_vulkan --features vulkan


Rendering on the gpu works great, only the dancing strings example doesn't work for some reason.

For rendering on the cpu to look correct, the cpu_fix feature needs to be enabled. See https://github.com/lucasmerlin/egui_skia/issues/1 for more information.




~470K SLoC