pub struct ImageEncoding {
pub paint: Paint,
pub paint_index: usize,
pub resident: ResidentImage,
}Expand description
One encoded image paint: the paint a draw references, plus where the atlas made its texels resident.
The residency travels back out because the record the shader reads is built
from both halves — the encoded entry’s sampler and transform, and the
atlas layer, offset and extent — and only this call has both in hand at
once (see crate::gpu::atlas::lower_encoded_image).
Fields§
§paint: PaintThe paint to record against the draw.
paint_index: usizeIndex of the image entry in the encoded-paint side table.
resident: ResidentImageWhere the image’s texels are resident in the atlas array.
Trait Implementations§
Source§impl Clone for ImageEncoding
impl Clone for ImageEncoding
Source§impl Debug for ImageEncoding
impl Debug for ImageEncoding
Source§impl PartialEq for ImageEncoding
impl PartialEq for ImageEncoding
impl StructuralPartialEq for ImageEncoding
Auto Trait Implementations§
impl Freeze for ImageEncoding
impl RefUnwindSafe for ImageEncoding
impl Send for ImageEncoding
impl Sync for ImageEncoding
impl Unpin for ImageEncoding
impl UnsafeUnpin for ImageEncoding
impl UnwindSafe for ImageEncoding
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