pub struct RendererShared { /* private fields */ }Expand description
可跨窗口复用的 Renderer GPU 资源(pipeline / bind group layout / blit sampler / glyph atlas / 图片纹理缓存)。
layer 缓存与 batch buffer 仍由各窗口 Renderer 独立持有(LayerId 只在单树内唯一)。
Implementations§
pub fn format(&self) -> TextureFormat
Sourcepub fn evict_images(&self, protected: &HashSet<u32>)
pub fn evict_images(&self, protected: &HashSet<u32>)
多窗口 host 在一个渲染周期后调用:保护所有窗口最近一帧使用的纹理, 超预算时淘汰其余最旧纹理。
Trait Implementations§
Auto Trait Implementations§
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