pub struct Vertex {
pub normal: NormalDir,
pub uv: TexUV,
pub color: VertexColor,
}Expand description
合并顶点属性,取代多个独立 Vec,提高内存局部性。
Fields§
§normal: NormalDir§uv: TexUV§color: VertexColorTrait Implementations§
impl StructuralPartialEq for Vertex
Auto Trait Implementations§
impl Freeze for Vertex
impl RefUnwindSafe for Vertex
impl Send for Vertex
impl Sync for Vertex
impl Unpin for Vertex
impl UnsafeUnpin for Vertex
impl UnwindSafe for Vertex
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