GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git
examples/compute_native.rs (527B)
1 //! The compute probe on Vulkan (`vk::ComputeDevice`): runs the shared jobs
2 //! (`compute_probe/jobs.rs`) and prints one line each. Its browser half is
3 //! `compute_web`; `scripts/web-probe/compute` diffs the two.
4
5 #[path = "compute_probe/jobs.rs"]
6 mod jobs;
7
8 fn main() {
9 let mut dev = match cce_ui::vk::ComputeDevice::new() {
10 Ok(d) => d,
11 Err(e) => {
12 eprintln!("{e}");
13 std::process::exit(2);
14 }
15 };
16 for line in compute_jobs!(dev,) {
17 println!("{line}");
18 }
19 }