#[repr(transparent)]pub struct VertexFormat(pub UInteger);Expand description
Vertex format for vertex attributes.
C++ equivalent: MTL::VertexFormat
Tuple Fields§
§0: UIntegerImplementations§
Source§impl VertexFormat
impl VertexFormat
pub const INVALID: Self
pub const UCHAR2: Self
pub const UCHAR3: Self
pub const UCHAR4: Self
pub const CHAR2: Self
pub const CHAR3: Self
pub const CHAR4: Self
pub const UCHAR2_NORMALIZED: Self
pub const UCHAR3_NORMALIZED: Self
pub const UCHAR4_NORMALIZED: Self
pub const CHAR2_NORMALIZED: Self
pub const CHAR3_NORMALIZED: Self
pub const CHAR4_NORMALIZED: Self
pub const USHORT2: Self
pub const USHORT3: Self
pub const USHORT4: Self
pub const SHORT2: Self
pub const SHORT3: Self
pub const SHORT4: Self
pub const USHORT2_NORMALIZED: Self
pub const USHORT3_NORMALIZED: Self
pub const USHORT4_NORMALIZED: Self
pub const SHORT2_NORMALIZED: Self
pub const SHORT3_NORMALIZED: Self
pub const SHORT4_NORMALIZED: Self
pub const HALF2: Self
pub const HALF3: Self
pub const HALF4: Self
pub const FLOAT: Self
pub const FLOAT2: Self
pub const FLOAT3: Self
pub const FLOAT4: Self
pub const INT: Self
pub const INT2: Self
pub const INT3: Self
pub const INT4: Self
pub const UINT: Self
pub const UINT2: Self
pub const UINT3: Self
pub const UINT4: Self
pub const INT1010102_NORMALIZED: Self
pub const UINT1010102_NORMALIZED: Self
pub const UCHAR4_NORMALIZED_BGRA: Self
pub const UCHAR: Self
pub const CHAR: Self
pub const UCHAR_NORMALIZED: Self
pub const CHAR_NORMALIZED: Self
pub const USHORT: Self
pub const SHORT: Self
pub const USHORT_NORMALIZED: Self
pub const SHORT_NORMALIZED: Self
pub const HALF: Self
pub const FLOAT_RG11B10: Self
pub const FLOAT_RGB9E5: Self
Trait Implementations§
Source§impl Clone for VertexFormat
impl Clone for VertexFormat
Source§fn clone(&self) -> VertexFormat
fn clone(&self) -> VertexFormat
Returns a duplicate 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 VertexFormat
impl Debug for VertexFormat
Source§impl Default for VertexFormat
impl Default for VertexFormat
Source§fn default() -> VertexFormat
fn default() -> VertexFormat
Returns the “default value” for a type. Read more
Source§impl Hash for VertexFormat
impl Hash for VertexFormat
Source§impl PartialEq for VertexFormat
impl PartialEq for VertexFormat
impl Copy for VertexFormat
impl Eq for VertexFormat
impl StructuralPartialEq for VertexFormat
Auto Trait Implementations§
impl Freeze for VertexFormat
impl RefUnwindSafe for VertexFormat
impl Send for VertexFormat
impl Sync for VertexFormat
impl Unpin for VertexFormat
impl UnwindSafe for VertexFormat
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