pub struct RendererOptions {
pub transparent: bool,
pub bootstrap: Option<SurfaceBootstrapConfig>,
pub isolated_budget: Option<IsolatedBudgetConfig>,
}Expand description
Fields§
§transparent: boolUse a transparent swapchain clear (client chrome / rounded window).
bootstrap: Option<SurfaceBootstrapConfig>Optional bootstrap override (desktop path).
isolated_budget: Option<IsolatedBudgetConfig>Offscreen isolated budgets (None = IsolatedBudgetConfig::default).
Implementations§
Source§impl RendererOptions
impl RendererOptions
Sourcepub fn with_bootstrap(self, bootstrap: SurfaceBootstrapConfig) -> Self
pub fn with_bootstrap(self, bootstrap: SurfaceBootstrapConfig) -> Self
Sets an explicit native-surface bootstrap policy.
§Examples
use ailloli_ui_render_wgpu::{
pipeline_cache::SurfaceBootstrapConfig,
RendererOptions,
};
let options = RendererOptions::default()
.with_bootstrap(SurfaceBootstrapConfig::vulkan_only());
assert!(!options.bootstrap_config().allow_fallback_backends);Sourcepub fn bootstrap_config(&self) -> SurfaceBootstrapConfig
pub fn bootstrap_config(&self) -> SurfaceBootstrapConfig
Returns the explicit bootstrap policy or its permissive default.
§Examples
use ailloli_ui_render_wgpu::RendererOptions;
assert!(RendererOptions::default().bootstrap_config().allow_fallback_backends);Trait Implementations§
Source§impl Clone for RendererOptions
impl Clone for RendererOptions
Source§fn clone(&self) -> RendererOptions
fn clone(&self) -> RendererOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RendererOptions
impl Debug for RendererOptions
Source§impl Default for RendererOptions
impl Default for RendererOptions
Source§fn default() -> RendererOptions
fn default() -> RendererOptions
Returns the “default value” for a type. Read more
impl Copy for RendererOptions
Auto Trait Implementations§
impl Freeze for RendererOptions
impl RefUnwindSafe for RendererOptions
impl Send for RendererOptions
impl Sync for RendererOptions
impl Unpin for RendererOptions
impl UnwindSafe for RendererOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().