pub struct InstanceMesh {
pub vertices: Vec<Vertex>,
pub indices: Vec<u32>,
pub VAO: u32,
pub instance_buffer: u32,
pub n: usize,
pub instance_data: Vec<InstanceData>,
/* private fields */
}
Fields§
§vertices: Vec<Vertex>
§indices: Vec<u32>
§VAO: u32
§instance_buffer: u32
§n: usize
§instance_data: Vec<InstanceData>
Implementations§
Trait Implementations§
Source§impl Debug for InstanceMesh
impl Debug for InstanceMesh
Source§impl Drop for InstanceMesh
impl Drop for InstanceMesh
Source§impl PartialEq for InstanceMesh
impl PartialEq for InstanceMesh
impl StructuralPartialEq for InstanceMesh
Auto Trait Implementations§
impl Freeze for InstanceMesh
impl RefUnwindSafe for InstanceMesh
impl Send for InstanceMesh
impl Sync for InstanceMesh
impl Unpin for InstanceMesh
impl UnwindSafe for InstanceMesh
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more