Struct chair::ColouredVertex
source · #[repr(C)]pub struct ColouredVertex {
pub pos: [f32; 3],
pub col: [f32; 4],
}
Expand description
A vertex with position and colour
Fields§
§pos: [f32; 3]
§col: [f32; 4]
Trait Implementations§
source§impl Clone for ColouredVertex
impl Clone for ColouredVertex
source§fn clone(&self) -> ColouredVertex
fn clone(&self) -> ColouredVertex
Returns a copy 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 ColouredVertex
impl Debug for ColouredVertex
source§impl Vertex for ColouredVertex
impl Vertex for ColouredVertex
source§fn new(pos: [f32; 3], col: [f32; 4], _: [f32; 3], _: [f32; 2]) -> Self
fn new(pos: [f32; 3], col: [f32; 4], _: [f32; 3], _: [f32; 2]) -> Self
Create a new vertex, using at least position
source§fn features() -> MeshFeatures
fn features() -> MeshFeatures
Return the features required by this vertex format
source§fn attribs() -> &'static [VertexAttribute]
fn attribs() -> &'static [VertexAttribute]
Return the attributes for each field in this vertex format
source§fn layout() -> VertexBufferLayout<'static>
fn layout() -> VertexBufferLayout<'static>
Return the vertex buffer layout for this vertex format
impl Copy for ColouredVertex
impl Pod for ColouredVertex
Auto Trait Implementations§
impl Freeze for ColouredVertex
impl RefUnwindSafe for ColouredVertex
impl Send for ColouredVertex
impl Sync for ColouredVertex
impl Unpin for ColouredVertex
impl UnwindSafe for ColouredVertex
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
source§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
.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
.