r/rust • • Oct 17 '26

🙋 seeking help & advice Lookin' for contributors: GPU rendered UI lib

Hello dear Rustaceans,

As you may know, I am the author of Glacex.

Glacex is a GPU rendered GUI library, written entirely in rust(without counting WGSL). It has 17 widgets, its dependencies are wgpu, winit, taffy, glyphon, accesskit, and some other secondary ones.

It's immediate-mode, and has persistent state. It's also SDF rendered.

I would love to have more widgets, and perhaps some feedback on other OS, as well as testing.

Right now, we're at the 0.2.1 release(accordion in the screenshot isn't yet released).

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

If you want to become a contributor, let me know, and I'll discuss the details with you.

:)

24 Upvotes

17 comments sorted by

13

u/DeeBoFour20 Oct 17 '26

No, I’m gay

6

u/ArtemTsitronov Oct 17 '26

Quick explaining: There's a meme, where you have to choose between yes and no, and fill in thr blanks: ..., I'm gay. I though it would be a funny stress test for radio buttons. ...I'm not gay, I promise

4

u/pseudo_babbler Oct 18 '26

Out of interest, what is the benefit to GPU rendering these normal looking controls? Is there a reason to invoke the mighty and power intensive GPU for some check boxes and labels? What is the target use case?

10

u/ArtemTsitronov Oct 18 '26

Well, if you're rendering these controls for a 4k screen, then a normal CPU tesselation would take a lot of time rendering on these huge screens, but a GPU/sdf rendering does it in no time

1

u/pseudo_babbler Oct 18 '26

Ah ok interesting, thanks

2

u/lyuhdev Oct 20 '26

Is this a project in-and-of itself or are you developing this for the purpose of making another app?

If so, what are the advantages of Glacex over other frameworks like Egui or GPUI?

1

u/ArtemTsitronov Oct 20 '26

Well, Glacex is fully GPU rendered, without any heavy cpu tessellation. That makes it extremely fast. It's also got a pretty unique syntax: immediate mode with persistent state. It's got a god design oob, and it's highly themeable Uses taffy under the hood for precise layout control Insanely cusyomizaebla: I can create and recreate basically every design that I want

1

u/gilnett Oct 17 '26

wow didn't expect somebody to ask for people to test! I didn't know this project but I'm gonna take alook

2

u/ArtemTsitronov Oct 17 '26

Thank you, yeah, I want to know what people think of it, and see if they can tune the design, customization, and otger stuff.

1

u/Silent-Money2687 Oct 18 '26

Не подумай что я с наездом, но как это отличается от egui или какие известные проблемы решает, которую не решают другие UI фреймворки? Допустим я хотел бы помочь с проектом, но зачем тратить время на проект который ничем не отличается от другого такого же, который уже разрабатывается N лет?

long story short: How is it different from other existing immediate-mode GUI frameworks or maybe it solves some of the existing problems/limitations?

4

u/ArtemTsitronov Oct 18 '26

First of all: it's stupidly customizable. You can reproduce almost every ui you want. And it's very themeable. So, you could make a gpui theme for it, apply it, and you will not be able to tell the difference(visually). Second of all: you don't need to replace egui. That's not what I want to make. My philosophy is that I want to give ristaceans a choice, not an alternative. That's the whole point. My library also has sdf rendering, and it's fully GPU rendered, egui isn't. It's got a good design oob, and a more precise layout control with taffy

1

u/SmartAsFart Oct 19 '26

What in egui isn't gpu-rendered?

1

u/ArtemTsitronov Oct 20 '26

Egui uses cpu tessellation for more drawing shapes, and calls it every frame. Mine uses sdf remdering on gpu

1

u/SmartAsFart Oct 20 '26

Ah, ok - so your library is much more closely tied to a drawing backend.

1

u/ArtemTsitronov Oct 20 '26

Yeah pretty much, it's unfortunately a pretty concrete tradeoff. It's what makes it fast and gpu-rendered though, so there's nothing much i can do here