1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! [`LocalComputeTarget`]: which engine(s) the live viewport's local (non-remote)
//! render loop uses, on a build compiled with the `gpu` feature.
//!
//! Separate from `worker.rs`'s [`super::worker::LiveComputeTarget`] (the
//! Local/Remote/Local+Remote choice): this answers a different question -- which
//! engine(s) trace local's own share of the work -- unrelated to remote workers.
use ;
/// Which engine(s) the local (non-remote) live render loop uses -- exposed in
/// `settings_dialog.slint`'s "Local Compute" pill row, shown only on a build compiled
/// with the `gpu` feature; a CPU-only build has no GPU path to choose between, so the
/// control stays hidden rather than offered and ignored.
///
/// See `gpu_backend::accumulate_frame_samples` for how each variant changes per-frame
/// dispatch, and `GpuBackend` for the decline-and-fall-back policy [`Gpu`](Self::Gpu)
/// relies on.