Qt + WGPU skeleton
Go to file
2026-10-26 18:55:26 +03:00
skel-test make sure skeleton tests are separate for (future) project tests 2026-04-18 16:23:47 +03:00
src move the GPU initialization out of the bridge 2026-10-26 18:55:26 +03:00
ui move ui/impl.cmake to src/ 2026-10-26 18:42:47 +03:00
.clang-format add clang-format 2026-10-25 12:32:21 +03:00
.gitignore Qt+WGPU 2026-01-24 21:07:33 +03:00
Cargo.lock replace custom FFI with Diplomat 2026-10-26 18:41:16 +03:00
Cargo.toml replace custom FFI with Diplomat 2026-10-26 18:41:16 +03:00
CMakeLists.txt move ui/impl.cmake to src/ 2026-10-26 18:42:47 +03:00
diplomat.cmake replace custom FFI with Diplomat 2026-10-26 18:41:16 +03:00
format.sh add clang-format 2026-10-25 12:32:21 +03:00
init.sh add a screenshot 2026-08-05 00:46:46 +03:00
README.md add a screenshot 2026-08-05 00:46:46 +03:00
screenshot.png add a screenshot 2026-08-05 00:46:46 +03:00

Qt6+WGPU skeleton program

This example combines Qt6 GUI (C++) with WGPU rendering (Rust). It doesn’t do much of either but it’s the bridging what’s relevant.

Currently only X11 (XCB) is supported but it should be easy to extend to other platforms.

Screenshot

Usage

This program is intended as a starting point rather than a dependency, so just copy it.

  1. Fetch this code:
    • clone the repo: git clone https://gitea.noteuclid.ru/noteuclid/qt-wgpu-skel.git
    • or, download and unpack the tarball.
  2. Rename the directory to your liking
  3. Run init.sh with the project name, like:
    • ./init.sh 'My FANCY Project', or
    • ./init.sh 'My FANCY Project' 'fancy-project'.

Running init.sh without arguments prints the help.

If you want to use Qt5, change the version in both CMakeLists.txt, as well as the KF version. If you don’t want to depend on KDE, remove the ECM and KF5 dependencies, as well as KColorCombo inBackground from the UI. You’ll need to replace inBackground->color() with something else though.