#[non_exhaustive]pub enum AtlasUpdate {
Resize {
width: u32,
height: u32,
},
Write(GlyphUpload),
}Expand description
A change the renderer must apply to its atlas texture, in queue order.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Resize
Make the texture at least width x height, keeping existing texels where they are.
Always the first update, so the renderer learns the size from the cache itself.
Write(GlyphUpload)
Copy pixels into the texture.
Trait Implementations§
Source§impl Clone for AtlasUpdate
impl Clone for AtlasUpdate
Source§impl Debug for AtlasUpdate
impl Debug for AtlasUpdate
impl Eq for AtlasUpdate
Source§impl PartialEq for AtlasUpdate
impl PartialEq for AtlasUpdate
impl StructuralPartialEq for AtlasUpdate
Auto Trait Implementations§
impl Freeze for AtlasUpdate
impl RefUnwindSafe for AtlasUpdate
impl Send for AtlasUpdate
impl Sync for AtlasUpdate
impl Unpin for AtlasUpdate
impl UnsafeUnpin for AtlasUpdate
impl UnwindSafe for AtlasUpdate
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