pub enum UploadStrategy {
DirectGpu,
MultiRect,
MergedBbox,
FullFrame,
None,
}Expand description
Truthful classification of how pixel/command data reached the presentation surface.
Variants§
DirectGpu
Direct GPU primitive rendering with zero CPU framebuffer upload.
MultiRect
Tight multi-rectangle dirty-tile texture uploads.
MergedBbox
Multiple dirty rectangles merged into one bounding-box upload.
FullFrame
Full-frame CPU framebuffer upload or blit.
None
No upload performed (unchanged/skipped frame or terminal output).
Implementations§
Source§impl UploadStrategy
Wire-label and cross-module strategy conversion helpers for UploadStrategy.
impl UploadStrategy
Wire-label and cross-module strategy conversion helpers for UploadStrategy.
Sourcepub const fn from_dirty_rect_strategy(strategy: DirtyRectStrategy) -> Self
pub const fn from_dirty_rect_strategy(strategy: DirtyRectStrategy) -> Self
Sourcepub const fn from_mobile_upload_strategy(strategy: MobileUploadStrategy) -> Self
pub const fn from_mobile_upload_strategy(strategy: MobileUploadStrategy) -> Self
Sourcepub const fn to_mobile_upload_strategy(&self) -> MobileUploadStrategy
pub const fn to_mobile_upload_strategy(&self) -> MobileUploadStrategy
Trait Implementations§
Source§impl Clone for UploadStrategy
impl Clone for UploadStrategy
impl Copy for UploadStrategy
Source§impl Debug for UploadStrategy
impl Debug for UploadStrategy
Source§impl Default for UploadStrategy
impl Default for UploadStrategy
Source§impl<'de> Deserialize<'de> for UploadStrategy
impl<'de> Deserialize<'de> for UploadStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UploadStrategy
Source§impl From<DirtyRectStrategy> for UploadStrategy
Lossless conversion from DirtyRectStrategy into UploadStrategy.
impl From<DirtyRectStrategy> for UploadStrategy
Lossless conversion from DirtyRectStrategy into UploadStrategy.
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 UploadStrategy
impl Hash for UploadStrategy
Source§impl Ord for UploadStrategy
impl Ord for UploadStrategy
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 UploadStrategy
impl PartialEq for UploadStrategy
Source§impl PartialOrd for UploadStrategy
impl PartialOrd for UploadStrategy
Source§impl Serialize for UploadStrategy
impl Serialize for UploadStrategy
impl StructuralPartialEq for UploadStrategy
Auto Trait Implementations§
impl Forget for UploadStrategy
impl Freeze for UploadStrategy
impl Move for UploadStrategy
impl RefUnwindSafe for UploadStrategy
impl Send for UploadStrategy
impl Sync for UploadStrategy
impl Unpin for UploadStrategy
impl UnsafeUnpin for UploadStrategy
impl UnwindSafe for UploadStrategy
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