pub struct MobileFailoverController { /* private fields */ }Expand description
Immediate zero-blank-frame failover state machine for Android EGL/GLES3 and iOS Metal presentation.
Implementations§
Source§impl MobileFailoverController
Fault-handling and path-selection methods for MobileFailoverController.
impl MobileFailoverController
Fault-handling and path-selection methods for MobileFailoverController.
Sourcepub fn for_preferred(
preferred_path: MobilePresentPath,
direct_gpu_available: bool,
gpu_upload_available: bool,
) -> Self
pub fn for_preferred( preferred_path: MobilePresentPath, direct_gpu_available: bool, gpu_upload_available: bool, ) -> Self
Creates a failover controller honoring preferred_path and detected hardware capabilities.
§Arguments
MobilePresentPath- Preferred initial presentation path.bool-truewhen direct GPU uber-shader rendering is available.bool-truewhen GPU texture upload rendering is available.
§Returns
Self- Configured failover controller with an immediately runnable active path.
Sourcepub fn cpu_mirror_active(&self) -> bool
pub fn cpu_mirror_active(&self) -> bool
Returns true when the active presentation path requires a CPU framebuffer mirror (false on GpuDirect).
§Returns
bool-falseforGpuDirect;trueforGpuUploadandSoftware.
Sourcepub fn set_surface_valid(&mut self, valid: bool)
pub fn set_surface_valid(&mut self, valid: bool)
Marks the active window surface valid or detached (false clears retained-frame status on new surface).
§Arguments
bool-truewhen a live native window / Metal layer is attached.
Sourcepub fn mark_frame_presented(&mut self)
pub fn mark_frame_presented(&mut self)
Records that a valid non-blank frame has been presented onto the current surface.
Sourcepub fn handle_fault(
&mut self,
fault: MobileSurfaceFault,
) -> MobileFailoverAction
pub fn handle_fault( &mut self, fault: MobileSurfaceFault, ) -> MobileFailoverAction
Source§impl MobileFailoverController
impl MobileFailoverController
pub fn get_active_path(&self) -> MobilePresentPath
pub fn get_mut_active_path(&mut self) -> &mut MobilePresentPath
pub fn set_active_path(&mut self, val: MobilePresentPath) -> &mut Self
pub fn get_preferred_path(&self) -> MobilePresentPath
pub fn get_mut_preferred_path(&mut self) -> &mut MobilePresentPath
pub fn set_preferred_path(&mut self, val: MobilePresentPath) -> &mut Self
pub fn get_has_valid_presented_frame(&self) -> bool
pub fn get_mut_has_valid_presented_frame(&mut self) -> &mut bool
pub fn set_has_valid_presented_frame(&mut self, val: bool) -> &mut Self
pub fn get_window_valid(&self) -> bool
pub fn get_mut_window_valid(&mut self) -> &mut bool
pub fn set_window_valid(&mut self, val: bool) -> &mut Self
pub fn get_direct_gpu_available(&self) -> bool
pub fn get_mut_direct_gpu_available(&mut self) -> &mut bool
pub fn set_direct_gpu_available(&mut self, val: bool) -> &mut Self
pub fn get_gpu_upload_available(&self) -> bool
pub fn get_mut_gpu_upload_available(&mut self) -> &mut bool
pub fn set_gpu_upload_available(&mut self, val: bool) -> &mut Self
pub fn get_context_loss_count(&self) -> u64
pub fn get_mut_context_loss_count(&mut self) -> &mut u64
pub fn set_context_loss_count(&mut self, val: u64) -> &mut Self
pub fn get_blank_frames_prevented(&self) -> u64
pub fn get_mut_blank_frames_prevented(&mut self) -> &mut u64
pub fn set_blank_frames_prevented(&mut self, val: u64) -> &mut Self
pub fn get_fallback_transitions(&self) -> u64
pub fn get_mut_fallback_transitions(&mut self) -> &mut u64
pub fn set_fallback_transitions(&mut self, val: u64) -> &mut Self
Trait Implementations§
Source§impl Clone for MobileFailoverController
impl Clone for MobileFailoverController
impl Copy for MobileFailoverController
Source§impl Debug for MobileFailoverController
impl Debug for MobileFailoverController
Source§impl Default for MobileFailoverController
Immediate zero-blank-frame failover logic for MobileFailoverController.
impl Default for MobileFailoverController
Immediate zero-blank-frame failover logic for MobileFailoverController.
impl Eq for MobileFailoverController
Source§impl PartialEq for MobileFailoverController
impl PartialEq for MobileFailoverController
impl StructuralPartialEq for MobileFailoverController
Auto Trait Implementations§
impl Forget for MobileFailoverController
impl Freeze for MobileFailoverController
impl Move for MobileFailoverController
impl RefUnwindSafe for MobileFailoverController
impl Send for MobileFailoverController
impl Sync for MobileFailoverController
impl Unpin for MobileFailoverController
impl UnsafeUnpin for MobileFailoverController
impl UnwindSafe for MobileFailoverController
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