pub struct PendingBitmapUpload {
pub image_id: ImageId,
pub pixmap: Arc<Pixmap>,
pub atlas_slot: AtlasSlot,
}Expand description
A bitmap glyph pixmap awaiting GPU upload.
Accumulated during glyph encoding when a bitmap glyph is inserted into the
atlas cache. The application must drain these via
GlyphAtlas::drain_pending_uploads and upload each pixmap to the
GPU atlas at the position indicated by image_id (look up via
ImageCache::get to obtain atlas layer and offset).
Fields§
§image_id: ImageIdThe image ID allocated in the shared ImageCache.
Use image_cache.get(image_id) to obtain atlas_id and offset.
pixmap: Arc<Pixmap>The bitmap pixel data to upload.
atlas_slot: AtlasSlotThe atlas slot information for this glyph (includes dimensions).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PendingBitmapUpload
impl RefUnwindSafe for PendingBitmapUpload
impl Send for PendingBitmapUpload
impl Sync for PendingBitmapUpload
impl Unpin for PendingBitmapUpload
impl UnsafeUnpin for PendingBitmapUpload
impl UnwindSafe for PendingBitmapUpload
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