pub struct Draw {
pub id: FragmentId,
pub image: Option<ImageId>,
pub params: [f32; 16],
}Expand description
One fragment node’s draw as the builder records it: what the node
declared, before emission resolves the image to an atlas slot or a
texture entry (which is per window, so it cannot happen here) and
writes the wire form, crate::display::FragmentDraw.
Fields§
§id: FragmentId§image: Option<ImageId>§params: [f32; 16]The view’s params, zero-padded to sixteen.
Trait Implementations§
impl Copy for Draw
impl StructuralPartialEq for Draw
Auto Trait Implementations§
impl Freeze for Draw
impl RefUnwindSafe for Draw
impl Send for Draw
impl Sync for Draw
impl Unpin for Draw
impl UnsafeUnpin for Draw
impl UnwindSafe for Draw
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