#[repr(C)]pub struct PosColorNorm {
pub position: Position,
pub color: Color,
pub normal: Normal,
}
Expand description
Vertex format with position, color and normal attributes.
Fields§
§position: Position
Position of the vertex in 3D space.
color: Color
RGBA color value of the vertex.
normal: Normal
Normal vector of the vertex.
Trait Implementations§
Source§impl AsVertex for PosColorNorm
impl AsVertex for PosColorNorm
Source§fn vertex() -> VertexFormat
fn vertex() -> VertexFormat
List of all attributes formats with name and offset.
Source§impl Clone for PosColorNorm
impl Clone for PosColorNorm
Source§fn clone(&self) -> PosColorNorm
fn clone(&self) -> PosColorNorm
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 PosColorNorm
impl Debug for PosColorNorm
Source§impl PartialEq for PosColorNorm
impl PartialEq for PosColorNorm
Source§impl PartialOrd for PosColorNorm
impl PartialOrd for PosColorNorm
impl Copy for PosColorNorm
impl StructuralPartialEq for PosColorNorm
Auto Trait Implementations§
impl Freeze for PosColorNorm
impl RefUnwindSafe for PosColorNorm
impl Send for PosColorNorm
impl Sync for PosColorNorm
impl Unpin for PosColorNorm
impl UnwindSafe for PosColorNorm
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)