pub struct CompositeRenderer {
pub renderer_2d: Box<dyn Renderer>,
pub renderer_3d: Box<dyn Renderer>,
/* private fields */
}
Expand description
Enhanced renderer composition for hybrid UIs with performance monitoring
Fields§
§renderer_2d: Box<dyn Renderer>
The 2D renderer (usually Skia)
renderer_3d: Box<dyn Renderer>
The 3D renderer (usually WGPU)
Implementations§
Trait Implementations§
Source§impl Renderer for CompositeRenderer
impl Renderer for CompositeRenderer
Source§fn render(
&mut self,
root: &Node,
context: &mut RenderContext,
) -> Result<(), Error>
fn render( &mut self, root: &Node, context: &mut RenderContext, ) -> Result<(), Error>
Render a component tree with context and performance optimizations
Source§fn render_selective(
&mut self,
root: &Node,
context: &mut RenderContext,
dirty_components: &[ComponentId],
) -> Result<(), Error>
fn render_selective( &mut self, root: &Node, context: &mut RenderContext, dirty_components: &[ComponentId], ) -> Result<(), Error>
Render only dirty components for performance
Source§fn get_stats(&self) -> RenderStats
fn get_stats(&self) -> RenderStats
Get render statistics
Source§fn reset_stats(&mut self)
fn reset_stats(&mut self)
Reset render statistics
Source§fn set_quality_level(&mut self, level: QualityLevel) -> Result<(), Error>
fn set_quality_level(&mut self, level: QualityLevel) -> Result<(), Error>
Set render quality/performance level
Auto Trait Implementations§
impl Freeze for CompositeRenderer
impl !RefUnwindSafe for CompositeRenderer
impl !Send for CompositeRenderer
impl !Sync for CompositeRenderer
impl Unpin for CompositeRenderer
impl !UnwindSafe for CompositeRenderer
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