#[repr(C)]pub struct ClusterVertex {
pub position: [f32; 4],
pub normal: [f32; 4],
pub color: [f32; 4],
pub uv: [f32; 2],
pub uv2: [f32; 2],
pub uv3: [f32; 2],
pub flags: f32,
pub _pad: f32,
pub uv4: [f32; 2],
pub uv5: [f32; 2],
}Expand description
Vertex produced by cluster unpacking — position, normal, color, UVs, flags. Mirrors the engine renderer’s Vertex layout so callers can transmute or convert.
Fields§
§position: [f32; 4]§normal: [f32; 4]§color: [f32; 4]§uv: [f32; 2]§uv2: [f32; 2]§uv3: [f32; 2]§flags: f32§_pad: f32§uv4: [f32; 2]§uv5: [f32; 2]Trait Implementations§
Source§impl Clone for ClusterVertex
impl Clone for ClusterVertex
Source§fn clone(&self) -> ClusterVertex
fn clone(&self) -> ClusterVertex
Returns a duplicate of the value. Read more
1.0.0 · 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 ClusterVertex
impl Debug for ClusterVertex
impl Copy for ClusterVertex
Auto Trait Implementations§
impl Freeze for ClusterVertex
impl RefUnwindSafe for ClusterVertex
impl Send for ClusterVertex
impl Sync for ClusterVertex
impl Unpin for ClusterVertex
impl UnsafeUnpin for ClusterVertex
impl UnwindSafe for ClusterVertex
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