pub struct IsolatedBudgetConfig {
pub max_offscreen_surface_px: u64,
pub max_offscreen_bytes_per_frame: u64,
pub max_blur_radius_px: f32,
pub max_isolated_passes_per_frame: u32,
pub max_isolated_nesting_depth: u8,
pub max_backdrop_captures_per_frame: u32,
pub max_backdrop_blur_radius_px: f32,
pub max_blend_captures_per_frame: u32,
}Expand description
Per-frame offscreen budgets (defaults suitable for 1080p-class UIs).
Byte estimates assume four bytes per color pixel and another four bytes per pixel when stencil is required. Limits are independent: satisfying one does not bypass the pass-count, depth, or capture limits.
§Examples
use ailloli_ui_render_wgpu::IsolatedBudgetConfig;
let config = IsolatedBudgetConfig::default();
assert_eq!(config.max_isolated_passes_per_frame, 8);
assert_eq!(config.max_offscreen_surface_px, 1920 * 1080);Fields§
§max_offscreen_surface_px: u64Maximum width * height for one isolated surface (physical pixels).
max_offscreen_bytes_per_frame: u64Maximum estimated bytes for all offscreen slots in one frame.
max_blur_radius_px: f32Largest content-blur radius, in physical pixels.
max_isolated_passes_per_frame: u32Maximum number of isolated passes scheduled in one frame.
max_isolated_nesting_depth: u8Maximum isolated nesting depth (0 = root only). nested isolated compositor.
max_backdrop_captures_per_frame: u32Max backdrop snapshots per frame (backdrop filter).
max_backdrop_blur_radius_px: f32Largest backdrop-blur radius, in physical pixels.
max_blend_captures_per_frame: u32Max dst captures for shader blend compositing per frame (blend modes).
Trait Implementations§
Source§impl Clone for IsolatedBudgetConfig
impl Clone for IsolatedBudgetConfig
Source§fn clone(&self) -> IsolatedBudgetConfig
fn clone(&self) -> IsolatedBudgetConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IsolatedBudgetConfig
impl Debug for IsolatedBudgetConfig
Source§impl Default for IsolatedBudgetConfig
impl Default for IsolatedBudgetConfig
Source§impl PartialEq for IsolatedBudgetConfig
impl PartialEq for IsolatedBudgetConfig
impl Copy for IsolatedBudgetConfig
impl StructuralPartialEq for IsolatedBudgetConfig
Auto Trait Implementations§
impl Freeze for IsolatedBudgetConfig
impl RefUnwindSafe for IsolatedBudgetConfig
impl Send for IsolatedBudgetConfig
impl Sync for IsolatedBudgetConfig
impl Unpin for IsolatedBudgetConfig
impl UnwindSafe for IsolatedBudgetConfig
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
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>
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>
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>
ReadEndian::read_from_little_endian().