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
//! [`FrameGlobalsSnapshot`] — CPU-side mirror of the values uploaded to
//! the `frame_globals` uniform this frame.
/// Snapshot of the values the renderer wrote into the `frame_globals`
/// uniform on the current frame. Cheap to copy.
///
/// Returned by [`crate::AwsmRenderer::frame_globals`]; the canonical
/// surface is the `frame_globals` uniform inside shaders. The CPU-side
/// view exists so subsystems running their own per-frame ticks (particle
/// simulators, gameplay clocks, animation drivers) can read the same
/// `delta_time` the GPU sees rather than rolling their own
/// `performance.now()` math.