#[repr(C)]pub struct Mesh {
pub vertices: Vec<Vertex>,
pub indices: Vec<u32>,
pub texture_id: Option<usize>,
pub children: Vec<Mesh>,
}Expand description
Mesh in device pixels
Fields§
§vertices: Vec<Vertex>§indices: Vec<u32>§texture_id: Option<usize>§children: Vec<Mesh>Implementations§
Source§impl Mesh
impl Mesh
pub fn from_children(children: Vec<Mesh>) -> Self
pub fn from_device_rect( rect: PhysicalPixelsRect, texture_id: Option<usize>, tex_bounds: PhysicalPixelsRect, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mesh
impl RefUnwindSafe for Mesh
impl Send for Mesh
impl Sync for Mesh
impl Unpin for Mesh
impl UnsafeUnpin for Mesh
impl UnwindSafe for Mesh
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