cxx-qt
contrast_renderer
Our great sponsors
cxx-qt | contrast_renderer | |
---|---|---|
28 | 4 | |
907 | 63 | |
6.6% | - | |
9.6 | 6.1 | |
3 days ago | 3 months ago | |
Rust | Rust | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cxx-qt
- Cxx-Qt: Use Qt from Rust
-
Qt 6.6 and 6.7 Make QML Faster Than Ever: A New Benchmark and Analysis
My employer, KDAB, is building an excellent Rust binding for Qt: https://github.com/KDAB/cxx-qt
-
I like rust but want to use Qt.
You can use cxx-qt or qmetaobject-rs. Or use Slint
-
Build a desktop app with Qt and Rust
Rust has several Qt bindings. The most popular are Ritual, CXX-Qt, and qmetaobject. Ritual is not maintained anymore, and qmetaobject doesn't support QWidgets. So CXX-Qt is our best bet for now.
-
DAW Frontend Development Struggles
Qt bindings for Rust also exist, although I'm not sure how mature they are: https://github.com/KDAB/cxx-qt/
-
Build a desktop app with Qt and Rust - LogRocket Blog
We're getting closer, but you're still likely to run into missing features in CXX-Qt at this point. If you do, please report it on GitHub!
- GUI development with Rust and GTK 4
-
Who "owns" Rust ?
This is no longer required in CXX-Qt as of this week (https://github.com/KDAB/cxx-qt/pull/428). Next release coming soon.
-
The first issue of Rust Magazine has been published 🎉🎉
From my understanding KDAB isn't trying to "replace" Qt. They're working on cxx-qt to make using Qt and Rust together much easier.
-
Rust: State of GUI, December 2022 – KAS blog
I second this. I wrote an internal Qt/QML app that ran on Windows, Linux, Android, and Raspberry Pis. We had ~20 Raspberry Pi's running this app in kiosk mode. If only KDAB/cxx-qt[1] were ready there, I would have done as much as possible in rust .
- [1] https://github.com/KDAB/cxx-qt/
contrast_renderer
-
WebGPU Fundamentals
This is true, but there is a lot more to the story. For one, WebGPU does not (yet) support mesh shaders, though it may later as an extension. For two, consider a glyph such as "o" that has two contours. Real triangulation generates a mesh that only generates triangles between the outer and inner contours, and mesh shaders aren't good at that. There are techniques (cover and stencil) that draw twice, incrementing and decrementing a winding number stored in the stencil buffer (see contrast renderer[1] for a clean modern implementation), but it does require nontrivial tracking on the CPU side, and can result in lots of draw calls to switch between the cover and stencil stages unless sophisticated batching is done.
Compute shaders avoid all these problems and work on WebGPU 1.0 today.
[1]: https://github.com/Lichtso/contrast_renderer
-
Rust: State of GUI, December 2022 – KAS blog
Thanks!
You can also checkout the "feature/ui" branch in GIT [1] to get the UI framework prototype.
[1]: https://github.com/Lichtso/contrast_renderer/tree/feature/ui
- Vector Graphics on GPU
What are some alternatives?
slint - Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
nbody-wasm-sim - An N-body WebAssembly simulation using Web GPU
qt6ct - Qt6 Configuration Tool
nanovgXC - Lightweight vector graphics library implementing exact-coverage antialiasing in OpenGL
crates.io - The Rust package registry
glyphy - GLyphy is a signed-distance-field (SDF) text renderer using OpenGL ES2 shading language.
miniserve - 🌟 For when you really just want to serve some files over HTTP right now!
vger-rs - 2D GPU renderer for dynamic UIs
gyroflow - Video stabilization using gyroscope data
msdfgen - Multi-channel signed distance field generator
bonsai - A library for building dynamic webapps, using Js_of_ocaml
wxRust2 - re-exploration Rust binding to wx