pub struct MeshGeometry {
pub vertices: Vec<f32>,
pub indices: Vec<u32>,
}Expand description
Renderer-independent interleaved geometry.
Fields§
§vertices: Vec<f32>Position(3), normal(3), UV(2), in model-space units.
indices: Vec<u32>Triangle indices expanded from progressive storage where applicable.
Trait Implementations§
Source§impl Clone for MeshGeometry
impl Clone for MeshGeometry
Source§fn clone(&self) -> MeshGeometry
fn clone(&self) -> MeshGeometry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MeshGeometry
impl Debug for MeshGeometry
Source§impl PartialEq for MeshGeometry
impl PartialEq for MeshGeometry
impl StructuralPartialEq for MeshGeometry
Auto Trait Implementations§
impl Freeze for MeshGeometry
impl RefUnwindSafe for MeshGeometry
impl Send for MeshGeometry
impl Sync for MeshGeometry
impl Unpin for MeshGeometry
impl UnsafeUnpin for MeshGeometry
impl UnwindSafe for MeshGeometry
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