Skip to main content

euv_core/platform/linux/
enum.rs

1/// Explicit Linux presentation outcome separating committed frames, clean unchanged skips, and hard surface errors.
2#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
3pub enum LinuxPresentOutcome {
4    /// Framebuffer pixels or GPU commands were attached, damaged, committed, and flushed to the display server.
5    Submitted,
6    /// Zero dirty regions changed since the previous committed frame; skipped cleanly without redundant submission.
7    #[default]
8    SkippedUnchanged,
9    /// Presentation failed due to missing surface/shm/display resources, buffer exhaustion, or compositor I/O error.
10    Failed,
11}
12
13/// Active Linux rendering and presentation transport selected for a native window.
14#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
15pub enum LinuxPresentationMode {
16    /// Direct Vulkan WSI GPU presentation (`VK_KHR_wayland_surface` or `VK_KHR_xlib_surface`, `cpu_mirror_active = false`).
17    GpuDirect,
18    /// Real double-buffered Wayland `wl_shm` software presentation (`cpu_mirror_active = true`).
19    WaylandShmSoftware,
20    /// X11 multi-rect dirty `XPutImage` / MIT-SHM software presentation (`cpu_mirror_active = true`).
21    #[default]
22    X11Software,
23}