#[non_exhaustive]pub struct VelloGpuRendererOptions {
pub features: Option<Features>,
pub limits: Option<Limits>,
pub render_settings: RenderSettings,
pub base_color: Color,
pub composite_alpha_mode: CompositeAlphaMode,
pub desired_maximum_frame_latency: u32,
pub glyph_caching: bool,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.features: Option<Features>§limits: Option<Limits>§render_settings: RenderSettings§base_color: Color§composite_alpha_mode: CompositeAlphaModeAlpha mode used when compositing the window surface.
desired_maximum_frame_latency: u32Maximum number of frames the presentation engine may queue ahead of the display. Each queued frame requires a window-sized swapchain surface, so lower values reduce memory usage and input latency at the cost of less buffering to absorb slow frames.
glyph_caching: boolWhether to cache rasterized glyphs in Vello’s glyph atlas.
Defaults to false.
Note: Vello considers atlas-backed glyph caching experimental.
Implementations§
Source§impl VelloGpuRendererOptions
impl VelloGpuRendererOptions
pub fn new() -> Self
pub fn features(self, features: Features) -> Self
pub fn limits(self, limits: Limits) -> Self
pub fn render_settings(self, render_settings: RenderSettings) -> Self
pub fn base_color(self, base_color: Color) -> Self
pub fn composite_alpha_mode( self, composite_alpha_mode: CompositeAlphaMode, ) -> Self
pub fn desired_maximum_frame_latency( self, desired_maximum_frame_latency: u32, ) -> Self
Sourcepub fn glyph_caching(self, glyph_caching: bool) -> Self
pub fn glyph_caching(self, glyph_caching: bool) -> Self
Enable or disable caching of rasterized glyphs in Vello’s glyph atlas.
Defaults to false.
Note: Vello considers atlas-backed glyph caching experimental.
Trait Implementations§
Source§impl Clone for VelloGpuRendererOptions
impl Clone for VelloGpuRendererOptions
Source§impl Default for VelloGpuRendererOptions
impl Default for VelloGpuRendererOptions
Source§impl From<RendererConfig> for VelloGpuRendererOptions
impl From<RendererConfig> for VelloGpuRendererOptions
Source§fn from(config: RendererConfig) -> Self
fn from(config: RendererConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for VelloGpuRendererOptions
impl !UnwindSafe for VelloGpuRendererOptions
impl Forget for VelloGpuRendererOptions
impl Freeze for VelloGpuRendererOptions
impl Move for VelloGpuRendererOptions
impl Send for VelloGpuRendererOptions
impl Sync for VelloGpuRendererOptions
impl Unpin for VelloGpuRendererOptions
impl UnsafeUnpin for VelloGpuRendererOptions
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