pub struct VertexFormatFlag(pub i32);Expand description
Vertex format flags determining vertex buffer layout
These bitmask flags control the per-vertex data layout in the U8__ vertex blob. The vertex stride is: 24 + (hasColor ? 4 : 0) + (numUVs * 4) + 4 bytes.
Bit flags. Combine with |, test with VertexFormatFlag::contains.
Tuple Fields§
§0: i32Implementations§
Trait Implementations§
Source§impl BitAnd for VertexFormatFlag
impl BitAnd for VertexFormatFlag
Source§impl BitOr for VertexFormatFlag
impl BitOr for VertexFormatFlag
Source§impl Clone for VertexFormatFlag
impl Clone for VertexFormatFlag
Source§fn clone(&self) -> VertexFormatFlag
fn clone(&self) -> VertexFormatFlag
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VertexFormatFlag
Source§impl Debug for VertexFormatFlag
impl Debug for VertexFormatFlag
Source§impl Default for VertexFormatFlag
impl Default for VertexFormatFlag
Source§fn default() -> VertexFormatFlag
fn default() -> VertexFormatFlag
Returns the “default value” for a type. Read more
impl Eq for VertexFormatFlag
Source§impl Hash for VertexFormatFlag
impl Hash for VertexFormatFlag
Source§impl Not for VertexFormatFlag
impl Not for VertexFormatFlag
Source§impl PartialEq for VertexFormatFlag
impl PartialEq for VertexFormatFlag
impl StructuralPartialEq for VertexFormatFlag
Auto Trait Implementations§
impl Freeze for VertexFormatFlag
impl RefUnwindSafe for VertexFormatFlag
impl Send for VertexFormatFlag
impl Sync for VertexFormatFlag
impl Unpin for VertexFormatFlag
impl UnsafeUnpin for VertexFormatFlag
impl UnwindSafe for VertexFormatFlag
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