pub struct IosPlatformOptions {
pub rendering_mode: Vec<IosRenderingMode>,
pub enable_high_refresh_rate: bool,
}Expand description
iOS backend options.
Fields§
§rendering_mode: Vec<IosRenderingMode>The rendering modes with fallbacks. The first element has the highest priority. The default value is Metal, then OpenGL.
The platform fails to start when no value could be applied.
enable_high_refresh_rate: boolGets or sets whether rendering follows the display refresh rate, up to 120 Hz on ProMotion displays. The default value is true.
On iPhone, rates above 60 Hz also need CADisableMinimumFrameDurationOnPhone set to true in the app’s Info.plist. Set this to false to keep the system’s default rate, for example if the app can’t sustain high frame rates.
Trait Implementations§
Source§impl Clone for IosPlatformOptions
impl Clone for IosPlatformOptions
Source§impl Debug for IosPlatformOptions
impl Debug for IosPlatformOptions
Source§impl Default for IosPlatformOptions
impl Default for IosPlatformOptions
impl Eq for IosPlatformOptions
Source§impl PartialEq for IosPlatformOptions
impl PartialEq for IosPlatformOptions
impl StructuralPartialEq for IosPlatformOptions
Auto Trait Implementations§
impl Freeze for IosPlatformOptions
impl RefUnwindSafe for IosPlatformOptions
impl Send for IosPlatformOptions
impl Sync for IosPlatformOptions
impl Unpin for IosPlatformOptions
impl UnsafeUnpin for IosPlatformOptions
impl UnwindSafe for IosPlatformOptions
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more