euv_core/render/ring/enum.rs
1/// Priority class governing bounded GPU staging ring backpressure when all slots are in flight.
2#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
3pub enum GpuUploadPriority {
4 /// Upload required to present the active frame's visible content.
5 #[default]
6 RequiredFrame,
7 /// Speculative route prefetch or offscreen warm-up upload droppable under ring pressure.
8 OptionalPrefetch,
9}
10
11/// Result of acquiring a bounded staging slot from `GpuResourceRing`.
12#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
13pub enum GpuRingAcquireResult {
14 /// A staging slot was acquired and tagged with `fence_id`.
15 Acquired {
16 /// Index into `GpuResourceRing::slots`.
17 slot_index: usize,
18 /// Monotonic GPU fence associated with this submission.
19 fence_id: u64,
20 /// True when an existing backing buffer was reused without reallocating.
21 reused: bool,
22 },
23 /// All ring slots are in flight; an optional prefetch upload was dropped to protect the active frame.
24 DroppedPrefetchRingFull,
25 /// All ring slots are in flight; a required frame upload must wait for a fence completion instead of growing unboundedly.
26 DeferredFrameRingFull,
27}