pub struct PixelsRenderer { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Default for PixelsRenderer
impl Default for PixelsRenderer
Source§impl Renderer for PixelsRenderer
impl Renderer for PixelsRenderer
type Scene = Scene
type Error = PixelsRendererError
Source§fn attach_app_context_services(&mut self, app_context: &AppContext)
fn attach_app_context_services(&mut self, app_context: &AppContext)
Installs renderer-provided app services into the target AppContext. Read more
fn scene(&self) -> &Self::Scene
fn scene_mut(&mut self) -> &mut Self::Scene
fn rebuild_scene( &mut self, layout_tree: &LayoutTree, _viewport: Size, ) -> Result<(), Self::Error>
Source§fn rebuild_scene_from_applier(
&mut self,
applier: &mut MemoryApplier,
root: NodeId,
_viewport: Size,
) -> Result<(), Self::Error>
fn rebuild_scene_from_applier( &mut self, applier: &mut MemoryApplier, root: NodeId, _viewport: Size, ) -> Result<(), Self::Error>
Rebuilds the scene by traversing the LayoutNode tree directly via Applier. Read more
fn update_scene_from_applier( &mut self, applier: &mut MemoryApplier, root: NodeId, _viewport: Size, updates: SceneUpdates<'_>, ) -> Result<(), Self::Error>
fn update_visual_scene_from_applier( &mut self, applier: &mut MemoryApplier, root: NodeId, _viewport: Size, updates: SceneUpdates<'_>, ) -> Result<(), Self::Error>
Source§fn set_root_scale(&mut self, _scale: f32)
fn set_root_scale(&mut self, _scale: f32)
Sets how many device pixels the renderer draws for one logical unit. Read more
Source§fn draw_dev_overlay(&mut self, _text: &str, _viewport: Size)
fn draw_dev_overlay(&mut self, _text: &str, _viewport: Size)
Draw a development overlay (e.g., FPS counter) on top of the scene. Read more
Source§fn set_inspector_overlay(&mut self, _graph: Option<RenderGraph>)
fn set_inspector_overlay(&mut self, _graph: Option<RenderGraph>)
Replaces the developer inspector graph outside the application scene. Read more
Source§fn needs_frame_warmup(&self) -> bool
fn needs_frame_warmup(&self) -> bool
Returns whether renderer-side cache materialization needs a visible follow-up frame.
Source§fn awaits_pipelines(&self) -> bool
fn awaits_pipelines(&self) -> bool
Returns whether the last frame drew a placeholder for an effect whose
pipelines are still compiling, so its picture is not final yet; the
renderer asks for the frame that replaces it once they land.
Auto Trait Implementations§
impl !Freeze for PixelsRenderer
impl !RefUnwindSafe for PixelsRenderer
impl !Send for PixelsRenderer
impl !Sync for PixelsRenderer
impl !UnwindSafe for PixelsRenderer
impl Unpin for PixelsRenderer
impl UnsafeUnpin for PixelsRenderer
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