Struct objc2_metal::MTLAttributeFormat
source · #[repr(transparent)]pub struct MTLAttributeFormat(pub NSUInteger);Available on crate feature
MTLStageInputOutputDescriptor only.Tuple Fields§
§0: NSUIntegerImplementations§
source§impl MTLAttributeFormat
impl MTLAttributeFormat
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 UChar2Normalized: Self = _
pub const UChar3Normalized: Self = _
pub const UChar4Normalized: Self = _
pub const Char2Normalized: Self = _
pub const Char3Normalized: Self = _
pub const Char4Normalized: 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 UShort2Normalized: Self = _
pub const UShort3Normalized: Self = _
pub const UShort4Normalized: Self = _
pub const Short2Normalized: Self = _
pub const Short3Normalized: Self = _
pub const Short4Normalized: 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 Int1010102Normalized: Self = _
pub const UInt1010102Normalized: Self = _
pub const UChar4Normalized_BGRA: Self = _
pub const UChar: Self = _
pub const Char: Self = _
pub const UCharNormalized: Self = _
pub const CharNormalized: Self = _
pub const UShort: Self = _
pub const Short: Self = _
pub const UShortNormalized: Self = _
pub const ShortNormalized: Self = _
pub const Half: Self = _
pub const FloatRG11B10: Self = _
pub const FloatRGB9E5: Self = _
Trait Implementations§
source§impl Clone for MTLAttributeFormat
impl Clone for MTLAttributeFormat
source§fn clone(&self) -> MTLAttributeFormat
fn clone(&self) -> MTLAttributeFormat
Returns a copy 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 MTLAttributeFormat
impl Debug for MTLAttributeFormat
source§impl Encode for MTLAttributeFormat
impl Encode for MTLAttributeFormat
source§impl Hash for MTLAttributeFormat
impl Hash for MTLAttributeFormat
source§impl Ord for MTLAttributeFormat
impl Ord for MTLAttributeFormat
source§fn cmp(&self, other: &MTLAttributeFormat) -> Ordering
fn cmp(&self, other: &MTLAttributeFormat) -> 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 MTLAttributeFormat
impl PartialEq for MTLAttributeFormat
source§fn eq(&self, other: &MTLAttributeFormat) -> bool
fn eq(&self, other: &MTLAttributeFormat) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for MTLAttributeFormat
impl PartialOrd for MTLAttributeFormat
source§fn partial_cmp(&self, other: &MTLAttributeFormat) -> Option<Ordering>
fn partial_cmp(&self, other: &MTLAttributeFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl RefEncode for MTLAttributeFormat
impl RefEncode for MTLAttributeFormat
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 MTLAttributeFormat
impl Eq for MTLAttributeFormat
impl StructuralPartialEq for MTLAttributeFormat
Auto Trait Implementations§
impl Freeze for MTLAttributeFormat
impl RefUnwindSafe for MTLAttributeFormat
impl Send for MTLAttributeFormat
impl Sync for MTLAttributeFormat
impl Unpin for MTLAttributeFormat
impl UnwindSafe for MTLAttributeFormat
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> 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.