#[repr(C)]pub struct MeshVertex {
pub position: [f32; 3],
pub normal: [f32; 3],
pub uv: [f32; 2],
pub tangent: [f32; 4],
}Expand description
GPU-ready vertex for PBR rendering
Fields§
§position: [f32; 3]§normal: [f32; 3]§uv: [f32; 2]§tangent: [f32; 4]Implementations§
Source§impl MeshVertex
impl MeshVertex
Trait Implementations§
Source§impl Clone for MeshVertex
impl Clone for MeshVertex
Source§fn clone(&self) -> MeshVertex
fn clone(&self) -> MeshVertex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MeshVertex
Source§impl Debug for MeshVertex
impl Debug for MeshVertex
impl Pod for MeshVertex
Auto Trait Implementations§
impl Freeze for MeshVertex
impl RefUnwindSafe for MeshVertex
impl Send for MeshVertex
impl Sync for MeshVertex
impl Unpin for MeshVertex
impl UnsafeUnpin for MeshVertex
impl UnwindSafe for MeshVertex
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.