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
53
54
55
56
57
58
// TODO(andreas): The concept of DrawPhase implementers is very much in progress!
// Need to start to formalize this further and create implementers for all DrawPhases to build up our render graph.
pub use ;
pub use ;
pub use ;
pub use ScreenshotProcessor;
// ------------
/// Determines a (very rough) order of rendering and describes the active [`wgpu::RenderPass`].
///
/// Currently we do not support sorting *within* a rendering phase!
/// See [#702](https://github.com/rerun-io/rerun/issues/702)
/// Within a phase `DrawData` are drawn in the order they are submitted in.
///
/// TODO(andreas): Should every phase/processor be associated with a single `wgpu::RenderPass`?
/// Note that this implies sub-phases (e.g. Opaque & background render to the same target).
/// Also we should then the higher level one to `RenderPass` or similar!
///
// TODO(#1025, #4787): Add a 2D phase after Background and before Transparent which we can use
// to draw 2D objects that use a 2D layer key as sorting key