pub struct ResidentPage {
pub key: u64,
pub extent_px: (u32, u32),
pub scale: f32,
}Expand description
One retained page the renderer holds resident: the key it was recorded
under (Command::PushRetained’s key), its rasterized extent in physical
pixels and the scale it was rasterized at.
Both are the page as rasterized: the bracket’s rectangle mapped through
its transform with the presentation scale applied, so scale is the device
scale times the bracket’s own scale (see frust_engine::cache::retained).
A page is reusable by a DrawRetained with the same linear transform at any
alpha and any translation, and by nothing else.
Fields§
§key: u64The raw retained key.
extent_px: (u32, u32)The page’s extent in physical pixels.
scale: f32The device scale the page was rasterized at.
Trait Implementations§
Source§impl Clone for ResidentPage
impl Clone for ResidentPage
impl Copy for ResidentPage
Source§impl Debug for ResidentPage
impl Debug for ResidentPage
Source§impl PartialEq for ResidentPage
impl PartialEq for ResidentPage
impl StructuralPartialEq for ResidentPage
Auto Trait Implementations§
impl Freeze for ResidentPage
impl RefUnwindSafe for ResidentPage
impl Send for ResidentPage
impl Sync for ResidentPage
impl Unpin for ResidentPage
impl UnsafeUnpin for ResidentPage
impl UnwindSafe for ResidentPage
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