GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git
examples/probe3d_native.rs (501B)
1 //! The 3D probe (`probe3d/scene.rs`) on the Vulkan renderer, in the Wayland
2 //! runner: screenshot it and compare it with `probe3d_web`'s frame.
3 //! `PROBE3D_TRACE=1` runs the traced probe (`CCE_VK_RT=compute` keeps
4 //! Vulkan on the compute tier the browser has).
5
6 #[path = "probe3d/scene.rs"]
7 mod scene;
8
9 fn main() {
10 if std::env::var("PROBE3D_TRACE").is_ok_and(|v| v == "1") {
11 cce_ui::engine::run::<scene::Traced>();
12 } else {
13 cce_ui::engine::run::<scene::Raster>();
14 }
15 }