Struct chair::BasicVertex
source · #[repr(C)]pub struct BasicVertex {
pub pos: [f32; 3],
}
Expand description
A vertex that just has position
Fields§
§pos: [f32; 3]
Trait Implementations§
source§impl Clone for BasicVertex
impl Clone for BasicVertex
source§fn clone(&self) -> BasicVertex
fn clone(&self) -> BasicVertex
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 BasicVertex
impl Debug for BasicVertex
source§impl Vertex for BasicVertex
impl Vertex for BasicVertex
source§fn new(pos: [f32; 3], _: [f32; 4], _: [f32; 3], _: [f32; 2]) -> Self
fn new(pos: [f32; 3], _: [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 BasicVertex
impl Pod for BasicVertex
Auto Trait Implementations§
impl Freeze for BasicVertex
impl RefUnwindSafe for BasicVertex
impl Send for BasicVertex
impl Sync for BasicVertex
impl Unpin for BasicVertex
impl UnwindSafe for BasicVertex
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
.