#[repr(u8)]pub enum MobileUploadStrategy {
DirectGpu = 0,
MultiRect = 1,
MergedBbox = 2,
FullFrame = 3,
None = 4,
}Expand description
Adaptive pixel/primitive upload strategy selected for the current mobile presentation frame.
Variants§
DirectGpu = 0
Zero full-frame CPU mirror; uploads only packed 64-byte GpuPrimitiveInstance streams and dirty atlas updates.
MultiRect = 1
Uploads each disjoint dirty rectangle independently when bounding-box merge would waste bandwidth.
MergedBbox = 2
Uploads a single merged bounding box covering clustered dirty rectangles.
FullFrame = 3
Uploads the entire framebuffer texture on resize, first frame, or high dirty coverage.
None = 4
Skips upload because the frame has zero damaged pixels.
Trait Implementations§
Source§impl Clone for MobileUploadStrategy
impl Clone for MobileUploadStrategy
impl Copy for MobileUploadStrategy
Source§impl Debug for MobileUploadStrategy
impl Debug for MobileUploadStrategy
Source§impl Default for MobileUploadStrategy
impl Default for MobileUploadStrategy
impl Eq for MobileUploadStrategy
Source§impl From<MobileUploadStrategy> for UploadStrategy
Lossless conversion from MobileUploadStrategy into UploadStrategy.
impl From<MobileUploadStrategy> for UploadStrategy
Lossless conversion from MobileUploadStrategy into UploadStrategy.
Source§impl Hash for MobileUploadStrategy
impl Hash for MobileUploadStrategy
Source§impl Ord for MobileUploadStrategy
impl Ord for MobileUploadStrategy
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MobileUploadStrategy
impl PartialEq for MobileUploadStrategy
Source§impl PartialOrd for MobileUploadStrategy
impl PartialOrd for MobileUploadStrategy
impl StructuralPartialEq for MobileUploadStrategy
Auto Trait Implementations§
impl Forget for MobileUploadStrategy
impl Freeze for MobileUploadStrategy
impl Move for MobileUploadStrategy
impl RefUnwindSafe for MobileUploadStrategy
impl Send for MobileUploadStrategy
impl Sync for MobileUploadStrategy
impl Unpin for MobileUploadStrategy
impl UnsafeUnpin for MobileUploadStrategy
impl UnwindSafe for MobileUploadStrategy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more