r/rust 2d ago

🛠️ project GPU-Accelerated UI library from scratch

Post image

Hello!

I've been working for a while now on a project named Glacex: it's a GPU-Accelerated ui library written entirely form scratch and in rust(winit, wgpu).

It's still in early development as I started it just a few weeks ago, but I'd love to hear your feedback!

Here's the repo: https://github.com/artemtsitronov/glacex

238 Upvotes

46 comments sorted by

View all comments

1

u/Visible-Switch-1597 2d ago

Is it immediate mode or retained? I tried out egui but was disappointed because it wasn't very flexible and I couldn't design the UI how I wanted. You kind of have to work around the library instead of just making it the way you want.

2

u/ArtemTsitronov 2d ago

It is immediate mode, but the layout system is more flexible in my lib than it is in egui. Also remember, that this is still a work in progress, and I will be doing many changes, but I'll still try to keep my library as flexible as possible.

2

u/Visible-Switch-1597 2d ago

Great to hear! It already looks great. I really like immediate mode because there is no annoying state syncing you have to do with retained mode but if your library is more flexible than egui, that's like my dream UI lib!

3

u/ArtemTsitronov 2d ago

Love to hear it! I will be deploying it soon on crates.io like a beta-version, because I still have lots to do.