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