pub struct LayerRasterCacheKey { /* private fields */ }Implementations§
Source§impl LayerRasterCacheKey
impl LayerRasterCacheKey
pub fn source_content( stable_id: Option<NodeId>, content_hash: u64, local_bounds: Rect, pixel_size: (u32, u32), raster_scale: RasterScale, device_phase: Point, ) -> Self
pub fn backdrop_effect( stable_id: Option<NodeId>, input_hash: u64, effect_hash: u64, local_bounds: Rect, pixel_size: (u32, u32), raster_scale: RasterScale, ) -> Self
Sourcepub fn layer_effect(
stable_id: Option<NodeId>,
input_hash: u64,
effect_hash: u64,
local_bounds: Rect,
pixel_size: (u32, u32),
raster_scale: RasterScale,
) -> Self
pub fn layer_effect( stable_id: Option<NodeId>, input_hash: u64, effect_hash: u64, local_bounds: Rect, pixel_size: (u32, u32), raster_scale: RasterScale, ) -> Self
A layer’s render effect applied over its retained surface: the output is a pure function of the surface’s content, the effect and the layer’s pixel rect within the surface.
pub fn scene_range( content_hash: u64, local_bounds: Rect, pixel_size: (u32, u32), raster_scale: RasterScale, ) -> Self
Sourcepub fn prefix_snapshot(
content_hash: u64,
prefix_len: u64,
local_bounds: Rect,
pixel_size: (u32, u32),
raster_scale: RasterScale,
) -> Self
pub fn prefix_snapshot( content_hash: u64, prefix_len: u64, local_bounds: Rect, pixel_size: (u32, u32), raster_scale: RasterScale, ) -> 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.
Sourcepub fn kind_slot(self) -> usize
pub fn kind_slot(self) -> usize
Index of this key’s kind in 0..LAYER_RASTER_CACHE_KIND_COUNT, for
per-kind accounting.
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)
Sourcepub fn local_bounds_bits(self) -> [u32; 4]
pub fn local_bounds_bits(self) -> [u32; 4]
The bit pattern of the entry’s local bounds: the place a keyless entry occupies, stable while its content changes.
pub fn raster_scale(self) -> RasterScale
Sourcepub fn draws_other_content(self, other: Self) -> bool
pub fn draws_other_content(self, other: Self) -> bool
Whether other rasterizes other content than this key: another
kind, node, content, effect or bounds. Keys that differ only in the
scale or the sub-pixel phase they are drawn at hold the same content.