pub struct VertexBuffers {
pub vertex_buffer: Buffer,
pub index_buffer: Buffer,
pub length: u32,
}Expand description
Container for vertex and index buffer
Fields§
§vertex_buffer: BufferAn array of vertices. A vertex is a point in 3D space containing an X, Y, and a Z coordinate between -1 and +1
index_buffer: BufferAn array of indices. Indices are a way to reuse vertices, this in turn helps greatly in reduction of amount of vertices needed to be sent to the GPU
length: u32The length of the vertex buffer
Trait Implementations§
Source§impl Debug for VertexBuffers
impl Debug for VertexBuffers
impl Send for VertexBuffers
impl Sync for VertexBuffers
Auto Trait Implementations§
impl Freeze for VertexBuffers
impl !RefUnwindSafe for VertexBuffers
impl Unpin for VertexBuffers
impl !UnwindSafe for VertexBuffers
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