#[repr(transparent)]pub struct MTLTextureType(pub NSUInteger);Available on crate feature
MTLTexture only.Expand description
MTLTextureType describes the dimensionality of each image, and if multiple images are arranged into an array or cube.
See also Apple’s documentation
Tuple Fields§
§0: NSUIntegerImplementations§
Source§impl MTLTextureType
impl MTLTextureType
pub const Type1D: Self
pub const Type1DArray: Self
pub const Type2D: Self
pub const Type2DArray: Self
pub const Type2DMultisample: Self
pub const TypeCube: Self
pub const TypeCubeArray: Self
pub const Type3D: Self
pub const Type2DMultisampleArray: Self
pub const TypeTextureBuffer: Self
Trait Implementations§
Source§impl Clone for MTLTextureType
impl Clone for MTLTextureType
Source§fn clone(&self) -> MTLTextureType
fn clone(&self) -> MTLTextureType
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 MTLTextureType
impl Debug for MTLTextureType
Source§impl Encode for MTLTextureType
impl Encode for MTLTextureType
Source§impl Hash for MTLTextureType
impl Hash for MTLTextureType
Source§impl Ord for MTLTextureType
impl Ord for MTLTextureType
Source§fn cmp(&self, other: &MTLTextureType) -> Ordering
fn cmp(&self, other: &MTLTextureType) -> 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 MTLTextureType
impl PartialEq for MTLTextureType
Source§impl PartialOrd for MTLTextureType
impl PartialOrd for MTLTextureType
Source§impl RefEncode for MTLTextureType
impl RefEncode for MTLTextureType
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 MTLTextureType
impl Eq for MTLTextureType
impl StructuralPartialEq for MTLTextureType
Auto Trait Implementations§
impl Freeze for MTLTextureType
impl RefUnwindSafe for MTLTextureType
impl Send for MTLTextureType
impl Sync for MTLTextureType
impl Unpin for MTLTextureType
impl UnwindSafe for MTLTextureType
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.