pub struct Instance {
pub model: Mat4,
pub color: [f32; 4],
}Expand description
One traveler, ready to draw: a world transform and a tint.
This is the entire surface presence needed from a renderer, and it is why this module could leave the engine it grew up in — two fields, owned here, so the Thread’s presence implementation depends on no renderer at all. A host converts it to whatever its own instance buffer wants.
Fields§
§model: Mat4§color: [f32; 4]Trait Implementations§
impl Copy for Instance
impl StructuralPartialEq for Instance
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnsafeUnpin for Instance
impl UnwindSafe for Instance
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