Struct objc2_metal::MTLDataType
source · #[repr(transparent)]pub struct MTLDataType(pub NSUInteger);Available on crate feature
MTLArgument only.Tuple Fields§
§0: NSUIntegerImplementations§
source§impl MTLDataType
impl MTLDataType
pub const None: Self = _
pub const Struct: Self = _
pub const Array: Self = _
pub const Float: Self = _
pub const Float2: Self = _
pub const Float3: Self = _
pub const Float4: Self = _
pub const Float2x2: Self = _
pub const Float2x3: Self = _
pub const Float2x4: Self = _
pub const Float3x2: Self = _
pub const Float3x3: Self = _
pub const Float3x4: Self = _
pub const Float4x2: Self = _
pub const Float4x3: Self = _
pub const Float4x4: Self = _
pub const Half: Self = _
pub const Half2: Self = _
pub const Half3: Self = _
pub const Half4: Self = _
pub const Half2x2: Self = _
pub const Half2x3: Self = _
pub const Half2x4: Self = _
pub const Half3x2: Self = _
pub const Half3x3: Self = _
pub const Half3x4: Self = _
pub const Half4x2: Self = _
pub const Half4x3: Self = _
pub const Half4x4: 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 Short: Self = _
pub const Short2: Self = _
pub const Short3: Self = _
pub const Short4: Self = _
pub const UShort: Self = _
pub const UShort2: Self = _
pub const UShort3: Self = _
pub const UShort4: Self = _
pub const Char: Self = _
pub const Char2: Self = _
pub const Char3: Self = _
pub const Char4: Self = _
pub const UChar: Self = _
pub const UChar2: Self = _
pub const UChar3: Self = _
pub const UChar4: Self = _
pub const Bool: Self = _
pub const Bool2: Self = _
pub const Bool3: Self = _
pub const Bool4: Self = _
pub const Texture: Self = _
pub const Sampler: Self = _
pub const Pointer: Self = _
pub const R8Unorm: Self = _
pub const R8Snorm: Self = _
pub const R16Unorm: Self = _
pub const R16Snorm: Self = _
pub const RG8Unorm: Self = _
pub const RG8Snorm: Self = _
pub const RG16Unorm: Self = _
pub const RG16Snorm: Self = _
pub const RGBA8Unorm: Self = _
pub const RGBA8Unorm_sRGB: Self = _
pub const RGBA8Snorm: Self = _
pub const RGBA16Unorm: Self = _
pub const RGBA16Snorm: Self = _
pub const RGB10A2Unorm: Self = _
pub const RG11B10Float: Self = _
pub const RGB9E5Float: Self = _
pub const RenderPipeline: Self = _
pub const ComputePipeline: Self = _
pub const IndirectCommandBuffer: Self = _
pub const Long: Self = _
pub const Long2: Self = _
pub const Long3: Self = _
pub const Long4: Self = _
pub const ULong: Self = _
pub const ULong2: Self = _
pub const ULong3: Self = _
pub const ULong4: Self = _
pub const VisibleFunctionTable: Self = _
pub const IntersectionFunctionTable: Self = _
pub const PrimitiveAccelerationStructure: Self = _
pub const InstanceAccelerationStructure: Self = _
pub const BFloat: Self = _
pub const BFloat2: Self = _
pub const BFloat3: Self = _
pub const BFloat4: Self = _
Trait Implementations§
source§impl Clone for MTLDataType
impl Clone for MTLDataType
source§fn clone(&self) -> MTLDataType
fn clone(&self) -> MTLDataType
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 MTLDataType
impl Debug for MTLDataType
source§impl Encode for MTLDataType
impl Encode for MTLDataType
source§impl Hash for MTLDataType
impl Hash for MTLDataType
source§impl Ord for MTLDataType
impl Ord for MTLDataType
source§fn cmp(&self, other: &MTLDataType) -> Ordering
fn cmp(&self, other: &MTLDataType) -> 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 MTLDataType
impl PartialEq for MTLDataType
source§fn eq(&self, other: &MTLDataType) -> bool
fn eq(&self, other: &MTLDataType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for MTLDataType
impl PartialOrd for MTLDataType
source§fn partial_cmp(&self, other: &MTLDataType) -> Option<Ordering>
fn partial_cmp(&self, other: &MTLDataType) -> 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 MTLDataType
impl RefEncode for MTLDataType
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 MTLDataType
impl Eq for MTLDataType
impl StructuralPartialEq for MTLDataType
Auto Trait Implementations§
impl Freeze for MTLDataType
impl RefUnwindSafe for MTLDataType
impl Send for MTLDataType
impl Sync for MTLDataType
impl Unpin for MTLDataType
impl UnwindSafe for MTLDataType
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.