#[repr(C)]pub struct TriangleVertex {
pub position: [f32; 3],
pub _pad0: f32,
pub color: [f32; 4],
}Expand description
Matches the vertex attribute layout: position at 0, color at 16.
Fields§
§position: [f32; 3]§_pad0: f32§color: [f32; 4]Trait Implementations§
Source§impl Clone for TriangleVertex
impl Clone for TriangleVertex
Source§fn clone(&self) -> TriangleVertex
fn clone(&self) -> TriangleVertex
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 TriangleVertex
impl Debug for TriangleVertex
Source§impl Default for TriangleVertex
impl Default for TriangleVertex
Source§fn default() -> TriangleVertex
fn default() -> TriangleVertex
Returns the “default value” for a type. Read more
impl Copy for TriangleVertex
impl Pod for TriangleVertex
Auto Trait Implementations§
impl Freeze for TriangleVertex
impl RefUnwindSafe for TriangleVertex
impl Send for TriangleVertex
impl Sync for TriangleVertex
impl Unpin for TriangleVertex
impl UnsafeUnpin for TriangleVertex
impl UnwindSafe for TriangleVertex
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
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§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.§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.