pub struct LayerRasterCacheKey { /* private fields */ }Implementations§
Source§impl LayerRasterCacheKey
impl LayerRasterCacheKey
pub fn new( stable_id: Option<NodeId>, content_hash: u64, effect_hash: u64, local_bounds: Rect, pixel_size: (u32, u32), scale_bucket: ScaleBucket, ) -> Self
pub fn source_content( stable_id: Option<NodeId>, content_hash: u64, local_bounds: Rect, pixel_size: (u32, u32), scale_bucket: ScaleBucket, ) -> Self
pub fn backdrop_effect( stable_id: Option<NodeId>, input_hash: u64, effect_hash: u64, local_bounds: Rect, pixel_size: (u32, u32), scale_bucket: ScaleBucket, ) -> Self
pub fn scene_range( content_hash: u64, local_bounds: Rect, pixel_size: (u32, u32), scale_bucket: ScaleBucket, ) -> Self
Sourcepub fn prefix_snapshot(
content_hash: u64,
prefix_len: u64,
local_bounds: Rect,
pixel_size: (u32, u32),
scale_bucket: ScaleBucket,
) -> Self
pub fn prefix_snapshot( content_hash: u64, prefix_len: u64, local_bounds: Rect, pixel_size: (u32, u32), scale_bucket: ScaleBucket, ) -> Self
A snapshot of the scene’s rendered prefix: the bytes the target held
after drawing ops [0, prefix_len) over the pass’s clear color. A
replay of captured bytes is identical to direct rendering by
construction — no flattening, so none of the chained-rounding
divergence flatten entries carry.
pub fn stable_id(self) -> Option<NodeId>
pub fn is_scene_range(self) -> bool
pub fn is_source_content(self) -> bool
pub fn identity(self) -> Option<LayerRasterCacheIdentity>
pub fn pixel_size(self) -> (u32, u32)
pub fn scale_bucket(self) -> ScaleBucket
Trait Implementations§
Source§impl Clone for LayerRasterCacheKey
impl Clone for LayerRasterCacheKey
Source§fn clone(&self) -> LayerRasterCacheKey
fn clone(&self) -> LayerRasterCacheKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LayerRasterCacheKey
Source§impl Debug for LayerRasterCacheKey
impl Debug for LayerRasterCacheKey
impl Eq for LayerRasterCacheKey
Source§impl Hash for LayerRasterCacheKey
impl Hash for LayerRasterCacheKey
Source§impl PartialEq for LayerRasterCacheKey
impl PartialEq for LayerRasterCacheKey
impl StructuralPartialEq for LayerRasterCacheKey
Auto Trait Implementations§
impl Freeze for LayerRasterCacheKey
impl RefUnwindSafe for LayerRasterCacheKey
impl Send for LayerRasterCacheKey
impl Sync for LayerRasterCacheKey
impl Unpin for LayerRasterCacheKey
impl UnsafeUnpin for LayerRasterCacheKey
impl UnwindSafe for LayerRasterCacheKey
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