#[repr(C)]pub struct PosNorm {
pub position: Position,
pub normal: Normal,
}
Expand description
Vertex format with position and normal attributes.
Fields§
§position: Position
Position of the vertex in 3D space.
normal: Normal
Normal vector of the vertex.
Trait Implementations§
Source§impl AsVertex for PosNorm
impl AsVertex for PosNorm
Source§fn vertex() -> VertexFormat
fn vertex() -> VertexFormat
List of all attributes formats with name and offset.
Source§impl PartialOrd for PosNorm
impl PartialOrd for PosNorm
impl Copy for PosNorm
impl StructuralPartialEq for PosNorm
Auto Trait Implementations§
impl Freeze for PosNorm
impl RefUnwindSafe for PosNorm
impl Send for PosNorm
impl Sync for PosNorm
impl Unpin for PosNorm
impl UnwindSafe for PosNorm
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
)