euv_core/render/command/struct.rs
1use super::*;
2
3/// Reusable backend-agnostic command buffer emitted once per frame for Software, Hardware, or Hybrid execution.
4#[derive(Clone, Data, Debug, Default, PartialEq)]
5pub struct DisplayList {
6 /// Ordered drawing commands.
7 pub(crate) commands: Vec<DrawCommand>,
8 /// Logical viewport size associated with this display list.
9 #[get(type(copy))]
10 pub(crate) viewport: Size,
11 /// Scale factor mapping logical coordinates to physical pixels.
12 #[get(type(copy))]
13 pub(crate) scale_factor: f32,
14 /// Command index separating base-scene commands `[0..portal_split_index]` from top-layer portal/fixed overlays.
15 #[get(type(copy))]
16 pub(crate) portal_split_index: usize,
17}
18
19/// Stateless scene-to-display-list compiler supporting z-order sorting, scroll clipping, and frustum culling.
20#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
21pub struct PaintPass;