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
38
39
40
41
/// Wasm-safe, thread-free per-pixel CPU tracer.
///
/// See the module's own doc comment.
/// The backend-independent frame-scene bundle.
///
/// See the module's own doc comment.
// Parses and validates every WGSL shader with `naga` (a dev-dependency available
// regardless of the `gpu` feature) so a shader syntax/type error is a `cargo test`
// failure on any machine, GPU or not -- see that module's own doc comment. Declared
// here, OUTSIDE the `#[cfg(feature = "gpu")]` gate below, so plain `cargo test` (no
// `--features gpu`) actually runs it; the file itself still lives under `gpu/` (its
// `include_str!("../shaders/...")` paths are relative to the file, not this
// declaration, so they are unaffected by which module tree reaches it).
/// CPU-side HDR environment-map loading and importance sampling.
///
/// Always available (no `gpu` feature required); see module docs for the `hdr`
/// feature gating actual file decoding.
// GPU compute infrastructure and its mandatory self-tests; see that module's doc comment.
// Not gated behind `feature = "gpu"`: this decline-and-fall-back wrapper exists in both
// configurations so callers' render loops need no `#[cfg]` of their own.