pub struct VertexData {
pub positions: Vec<[f32; 3]>,
pub normals: Vec<[f32; 3]>,
pub tex_coords: Vec<[f32; 2]>,
}Expand description
Represents the vertex data stored in the memory pool
Fields§
§positions: Vec<[f32; 3]>Vertex positions (x, y, z)
normals: Vec<[f32; 3]>Vertex normals (x, y, z)
tex_coords: Vec<[f32; 2]>Texture coordinates (u, v)
Trait Implementations§
Source§impl Debug for VertexData
impl Debug for VertexData
Source§impl PartialEq for VertexData
impl PartialEq for VertexData
impl StructuralPartialEq for VertexData
Auto Trait Implementations§
impl Freeze for VertexData
impl RefUnwindSafe for VertexData
impl Send for VertexData
impl Sync for VertexData
impl Unpin for VertexData
impl UnwindSafe for VertexData
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