pub struct Vertex {
pub position: Vec4,
pub color: Vec4,
pub texcoord_u: i32,
pub texcoord_v: i32,
}Expand description
Vertex data for software rasterizer
Fields§
§position: Vec4Position (x, y, z, w) in 16.16 FP after vertex transformation
color: Vec4Color (r, g, b, a) in 16.16 FP [0, FP_ONE]
texcoord_u: i32Texture coordinates (u, v) in 16.16 FP [0, FP_ONE]
texcoord_v: i32Trait Implementations§
impl Copy for Vertex
Auto Trait Implementations§
impl Freeze for Vertex
impl RefUnwindSafe for Vertex
impl Send for Vertex
impl Sync for Vertex
impl Unpin for Vertex
impl UnwindSafe for Vertex
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)