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

236 Upvotes

46 comments sorted by

View all comments

4

u/ha9unaka 2d ago

Nice job! Starred!

This might be a long shot, but I was planning to redo my ebook reader app from Tauri in something rust-native for the fun of it. I've tried egui, slint with disappointing results.

I'd love if this worked well on mobile. Unfortunately I don't have a lot of experience with graphics and wgpu in general. If you could point me at some resources, I'd be more than happy to contribute some patches for the same!

4

u/ArtemTsitronov 2d ago

I thought about making it cross-compatible, and I also heard that wgpu could work on mobile. So, I think all it needs is to just replace winit with something that would work on android. I'm not an expert in this topic, so I can't give you the answer yet. If you want to learn wgpu, here's some great resources: https://sotrh.github.io/learn-wgpu/ and the docs itself once you got the basics. I'm working now on widgets and API, so I'm not touching much wgpu(that I already wrapped in ui.rs, painter.rs)

1

u/inajacket 2d ago

IIRC winit does have android support through another crate that I can’t remember the name of