schell / renderling

GPU driven real-time renderer, backed by wgpu and rust-gpu
https://renderling.xyz
Other
65 stars 4 forks source link

GPU driven UI #17

Open schell opened 1 year ago

schell commented 1 year ago

Similar to how 3d scenes are "GPU-driven" (in that the textures, geometry, entities - the whole lot - are stored on the GPU in buffers), I'd like to do the same for 2d scenes.

(Answers from the future are annotated with ๐Ÿ”ฎ.).

Complaints about the current landscape

A recent blog post has had a lot of attention lately that describes some of the pain points of picking a Rust GUI library.

The post kinda boils down to:

Adjacent work

The Zed team has been working on "GPUI" which seems to be a similar idea to what renderling could be.

I like the idea of using SDFs for drawing primitives. (๐Ÿ”ฎ SDFs are hard because there is no great abstraction for all of them apart from using a texture)

What to do here

At the very least we could provide a "GPU-driven" 2d render graph. This would allow downstream libraries to build well performing GUIs on top.

Requirements / Obstacles

https://discord.com/channels/318590007881236480/318590007881236480/1108469439168532540

coderedart commented 1 year ago

what server does the discord link point to? Without the server invite, I cannot reach that message :(

schell commented 1 year ago

@coderedart The server is "Graphics Programming" 318590007881236480. Here is the invite.

schell commented 1 year ago

@coderedart and thanks for following along :)

schell commented 4 months ago

There is a rudimentary renderling_ui that allows for creating text and paths. It doesn't yet support images without some mucking about with the underlying renderling types.

coderedart commented 4 months ago

The link is wrong. https://crates.io/crates/renderling_ui

And docs.rs failed to build :( https://docs.rs/crate/renderling_ui/latest

schell commented 4 months ago

Should all be up and running now @coderedart :)