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