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
42
43
44
45
46
47
48
49
50
51
52
//! The per-frame collection of overlay items a consumer submits for a frame.
use crate*;
/// Screen-space overlays rendered after post-processing: shapes, labels, glyph
/// runs, and polylines.
///
/// This frame section is the right place for any visual element that belongs
/// in front of the 3D scene and must not be affected by tone-mapping or bloom.
///
/// Items paint in `z_order` order, lowest first. At an equal `z_order`
/// analytic shapes paint under everything else (labels, glyph runs, polylines,
/// meshes and vector shapes), and each list paints in its own order. The order is kept between items that overlap on screen; items
/// that do not overlap may be drawn in any order, which is what lets the
/// renderer batch them across `z_order` values and families.