pub struct SoftwareRenderer { /* private fields */ }Expand description
High-performance CPU tile and analytical-SDF software rasterizer with zero GPU dependencies.
Implementations§
Source§impl SoftwareRenderer
Multi-core lossless analytical-SDF and tile-band software rasterizer methods for SoftwareRenderer.
impl SoftwareRenderer
Multi-core lossless analytical-SDF and tile-band software rasterizer methods for SoftwareRenderer.
Sourcepub fn with_config(width: u32, height: u32, config: RenderConfig) -> Self
pub fn with_config(width: u32, height: u32, config: RenderConfig) -> Self
Sourcepub fn with_font_provider(
width: u32,
height: u32,
config: RenderConfig,
font_provider: NativeSystemFont,
) -> Self
pub fn with_font_provider( width: u32, height: u32, config: RenderConfig, font_provider: NativeSystemFont, ) -> Self
Sourcepub fn get_framebuffer(&self) -> &Framebuffer
pub fn get_framebuffer(&self) -> &Framebuffer
Sourcepub fn framebuffer_opt(&self) -> Option<&Framebuffer>
pub fn framebuffer_opt(&self) -> Option<&Framebuffer>
Sourcepub fn allocated_framebuffer_bytes(&self) -> usize
pub fn allocated_framebuffer_bytes(&self) -> usize
Sourcepub fn release_framebuffer(&mut self)
pub fn release_framebuffer(&mut self)
Releases the resident CPU RGBA8 framebuffer and cached portal backdrop bytes to reclaim host RAM in GPU direct-draw mode.
§Arguments
&Self- Mutable software renderer.
Sourcepub fn set_font_provider(
&mut self,
font_provider: NativeSystemFont,
) -> &mut Self
pub fn set_font_provider( &mut self, font_provider: NativeSystemFont, ) -> &mut Self
Sourcepub fn set_high_frequency_active(&mut self, active: bool)
pub fn set_high_frequency_active(&mut self, active: bool)
Updates adaptive worker-pool hybrid spin mode (true = active animation/scroll ~3072 spins, false = immediate 0-spin park).
§Arguments
&Self- Mutable software renderer.bool- Whether high-frequency animation or scrolling is currently active.
Sourcepub fn blur_scratch_capacity(&self) -> usize
pub fn blur_scratch_capacity(&self) -> usize
Sourcepub fn positioned_glyph_run_cache_stats(&self) -> (u64, u64, usize)
pub fn positioned_glyph_run_cache_stats(&self) -> (u64, u64, usize)
Sourcepub fn set_adaptive_parallel_threshold(&mut self, min_pixels: Option<usize>)
pub fn set_adaptive_parallel_threshold(&mut self, min_pixels: Option<usize>)
Configures an explicit pixel-area threshold for serial-vs-parallel band dispatch (None re-enables adaptive tuning).
§Arguments
&Self- Mutable software renderer.Option<usize>- Explicit minimum damaged pixel area before waking band workers, orNonefor automatic adaptation.
Sourcepub fn adaptive_parallel_threshold(&self) -> usize
pub fn adaptive_parallel_threshold(&self) -> usize
Sourcepub fn render(
&mut self,
display_list: &DisplayList,
damage: DamageRegion,
) -> (usize, usize)
pub fn render( &mut self, display_list: &DisplayList, damage: DamageRegion, ) -> (usize, usize)
Rasterizes display_list into the internal Framebuffer clipped to damage using multi-core parallel horizontal bands and dirty-rect scoped portal backdrop caching.
§Arguments
&Self- Mutable software renderer.&DisplayList- Backend-agnostic draw command stream.DamageRegion- Optional dirty damage region for partial rasterization.
§Returns
(usize, usize)- Tuple of(tiles_updated, pixels_shaded).
Source§impl SoftwareRenderer
Implements impl #impl_generics #name #ty_generics #where_clause.
impl SoftwareRenderer
Implements impl #impl_generics #name #ty_generics #where_clause.