pub struct LayerRenderer { /* private fields */ }Expand description
Retained renderer bound to one physical surface tile for a logical layer.
Implementations§
Source§impl LayerRenderer
impl LayerRenderer
Sourcepub fn new(
key: String,
host_signature: String,
renderer: WgpuRenderer<'static>,
origin_x: f32,
origin_y: f32,
logical_width: f32,
logical_height: f32,
surface_width: u32,
surface_height: u32,
dpr: [f32; 2],
) -> Self
pub fn new( key: String, host_signature: String, renderer: WgpuRenderer<'static>, origin_x: f32, origin_y: f32, logical_width: f32, logical_height: f32, surface_width: u32, surface_height: u32, dpr: [f32; 2], ) -> Self
Create a renderer wrapper with its current tile geometry.
Sourcepub fn renderer_mut(&mut self) -> &mut WgpuRenderer<'static>
pub fn renderer_mut(&mut self) -> &mut WgpuRenderer<'static>
Access the underlying retained pax-gpu renderer.
Sourcepub fn sync_layout_metadata(&mut self, surface: &LayerSurfaceEntry)
pub fn sync_layout_metadata(&mut self, surface: &LayerSurfaceEntry)
Update the retained layout metadata after the owner has already applied matching backend surface/view transforms.
Auto Trait Implementations§
impl !Freeze for LayerRenderer
impl !RefUnwindSafe for LayerRenderer
impl !Send for LayerRenderer
impl !Sync for LayerRenderer
impl !UnwindSafe for LayerRenderer
impl Unpin for LayerRenderer
impl UnsafeUnpin for LayerRenderer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.