pub enum VertexFormat {
Show 17 variants
Float1,
Float2,
Float3,
Float4,
Byte1,
Byte2,
Byte3,
Byte4,
Short1,
Short2,
Short3,
Short4,
Int1,
Int2,
Int3,
Int4,
Mat4,
}
Variants
Float1
One 32-bit wide float (equivalent to f32
)
Float2
Two 32-bit wide floats (equivalent to [f32; 2]
)
Float3
Three 32-bit wide floats (equivalent to [f32; 3]
)
Float4
Four 32-bit wide floats (equivalent to [f32; 4]
)
Byte1
One unsigned 8-bit integer (equivalent to u8
)
Byte2
Two unsigned 8-bit integers (equivalent to [u8; 2]
)
Byte3
Three unsigned 8-bit integers (equivalent to [u8; 3]
)
Byte4
Four unsigned 8-bit integers (equivalent to [u8; 4]
)
Short1
One unsigned 16-bit integer (equivalent to u16
)
Short2
Two unsigned 16-bit integers (equivalent to [u16; 2]
)
Short3
Tree unsigned 16-bit integers (equivalent to [u16; 3]
)
Short4
Four unsigned 16-bit integers (equivalent to [u16; 4]
)
Int1
One unsigned 32-bit integers (equivalent to [u32; 1]
)
Int2
Two unsigned 32-bit integers (equivalent to [u32; 2]
)
Int3
Three unsigned 32-bit integers (equivalent to [u32; 3]
)
Int4
Four unsigned 32-bit integers (equivalent to [u32; 4]
)
Mat4
Four by four matrix of 32-bit floats
Implementations
Trait Implementations
sourceimpl Clone for VertexFormat
impl Clone for VertexFormat
sourcefn clone(&self) -> VertexFormat
fn clone(&self) -> VertexFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VertexFormat
impl Debug for VertexFormat
sourceimpl PartialEq<VertexFormat> for VertexFormat
impl PartialEq<VertexFormat> for VertexFormat
sourcefn eq(&self, other: &VertexFormat) -> bool
fn eq(&self, other: &VertexFormat) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for VertexFormat
impl StructuralPartialEq for VertexFormat
Auto Trait Implementations
impl RefUnwindSafe for VertexFormat
impl Send for VertexFormat
impl Sync for VertexFormat
impl Unpin for VertexFormat
impl UnwindSafe for VertexFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more