#[repr(transparent)]pub struct MDLVertexFormat(pub NSUInteger);
Available on crate feature
MDLVertexDescriptor
only.Expand description
Describes the format of a an attribute in a vertex buffer
Designed to be very similar to MTLVertexDescriptor to ease the translation from one to the other. Values are chosen such that packed types would all be less than 0x1000 and the bottom 5 bits can be used to determine the number of channels/components in the format.
See also Apple’s documentation
Tuple Fields§
§0: NSUInteger
Implementations§
Source§impl MDLVertexFormat
impl MDLVertexFormat
pub const Invalid: Self
pub const PackedBit: Self
pub const UCharBits: Self
pub const CharBits: Self
pub const UCharNormalizedBits: Self
pub const CharNormalizedBits: Self
pub const UShortBits: Self
pub const ShortBits: Self
pub const UShortNormalizedBits: Self
pub const ShortNormalizedBits: Self
pub const UIntBits: Self
pub const IntBits: Self
pub const HalfBits: Self
pub const FloatBits: Self
pub const UChar: Self
pub const UChar2: Self
pub const UChar3: Self
pub const UChar4: Self
pub const Char: Self
pub const Char2: Self
pub const Char3: Self
pub const Char4: Self
pub const UCharNormalized: Self
pub const UChar2Normalized: Self
pub const UChar3Normalized: Self
pub const UChar4Normalized: Self
pub const CharNormalized: Self
pub const Char2Normalized: Self
pub const Char3Normalized: Self
pub const Char4Normalized: Self
pub const UShort: Self
pub const UShort2: Self
pub const UShort3: Self
pub const UShort4: Self
pub const Short: Self
pub const Short2: Self
pub const Short3: Self
pub const Short4: Self
pub const UShortNormalized: Self
pub const UShort2Normalized: Self
pub const UShort3Normalized: Self
pub const UShort4Normalized: Self
pub const ShortNormalized: Self
pub const Short2Normalized: Self
pub const Short3Normalized: Self
pub const Short4Normalized: Self
pub const UInt: Self
pub const UInt2: Self
pub const UInt3: Self
pub const UInt4: Self
pub const Int: Self
pub const Int2: Self
pub const Int3: Self
pub const Int4: Self
pub const Half: 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 Int1010102Normalized: Self
pub const UInt1010102Normalized: Self
Trait Implementations§
Source§impl Clone for MDLVertexFormat
impl Clone for MDLVertexFormat
Source§fn clone(&self) -> MDLVertexFormat
fn clone(&self) -> MDLVertexFormat
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 MDLVertexFormat
impl Debug for MDLVertexFormat
Source§impl Encode for MDLVertexFormat
impl Encode for MDLVertexFormat
Source§impl Hash for MDLVertexFormat
impl Hash for MDLVertexFormat
Source§impl Ord for MDLVertexFormat
impl Ord for MDLVertexFormat
Source§fn cmp(&self, other: &MDLVertexFormat) -> Ordering
fn cmp(&self, other: &MDLVertexFormat) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MDLVertexFormat
impl PartialEq for MDLVertexFormat
Source§impl PartialOrd for MDLVertexFormat
impl PartialOrd for MDLVertexFormat
Source§impl RefEncode for MDLVertexFormat
impl RefEncode for MDLVertexFormat
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for MDLVertexFormat
impl Eq for MDLVertexFormat
impl StructuralPartialEq for MDLVertexFormat
Auto Trait Implementations§
impl Freeze for MDLVertexFormat
impl RefUnwindSafe for MDLVertexFormat
impl Send for MDLVertexFormat
impl Sync for MDLVertexFormat
impl Unpin for MDLVertexFormat
impl UnwindSafe for MDLVertexFormat
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§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.