#[derive(Debug, Clone)]
pub struct RobotPresentationInfo {
pub requested_mode: Option<String>,
pub present_mode: wgpu::PresentMode,
pub supported_modes: Vec<wgpu::PresentMode>,
pub frame_pacing_mode: cranpose_app_shell::FramePacingMode,
pub refresh_rate_hz: f64,
pub surface_size: (u32, u32),
}
impl RobotPresentationInfo {
pub fn uses_unpaced_configuration(&self) -> bool {
self.frame_pacing_mode == cranpose_app_shell::FramePacingMode::NoVsync
&& matches!(
self.present_mode,
wgpu::PresentMode::Immediate | wgpu::PresentMode::Mailbox
)
}
}