#[repr(transparent)]pub struct MTLSamplerBorderColor(pub NSUInteger);Available on crate feature
MTLSampler only.Expand description
Specify the color value that will be clamped to when the sampler address mode is MTLSamplerAddressModeClampToBorderColor.
Transparent black returns {0,0,0,0} for clamped texture values.
OpaqueBlack returns {0,0,0,1} for clamped texture values.
OpaqueWhite returns {1,1,1,1} for clamped texture values.
See also Apple’s documentation
Tuple Fields§
§0: NSUIntegerImplementations§
Source§impl MTLSamplerBorderColor
impl MTLSamplerBorderColor
pub const TransparentBlack: Self
pub const OpaqueBlack: Self
pub const OpaqueWhite: Self
Trait Implementations§
Source§impl Clone for MTLSamplerBorderColor
impl Clone for MTLSamplerBorderColor
Source§fn clone(&self) -> MTLSamplerBorderColor
fn clone(&self) -> MTLSamplerBorderColor
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 MTLSamplerBorderColor
impl Debug for MTLSamplerBorderColor
Source§impl Encode for MTLSamplerBorderColor
impl Encode for MTLSamplerBorderColor
Source§impl Hash for MTLSamplerBorderColor
impl Hash for MTLSamplerBorderColor
Source§impl Ord for MTLSamplerBorderColor
impl Ord for MTLSamplerBorderColor
Source§fn cmp(&self, other: &MTLSamplerBorderColor) -> Ordering
fn cmp(&self, other: &MTLSamplerBorderColor) -> 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 MTLSamplerBorderColor
impl PartialEq for MTLSamplerBorderColor
Source§impl PartialOrd for MTLSamplerBorderColor
impl PartialOrd for MTLSamplerBorderColor
Source§impl RefEncode for MTLSamplerBorderColor
impl RefEncode for MTLSamplerBorderColor
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 MTLSamplerBorderColor
impl Eq for MTLSamplerBorderColor
impl StructuralPartialEq for MTLSamplerBorderColor
Auto Trait Implementations§
impl Freeze for MTLSamplerBorderColor
impl RefUnwindSafe for MTLSamplerBorderColor
impl Send for MTLSamplerBorderColor
impl Sync for MTLSamplerBorderColor
impl Unpin for MTLSamplerBorderColor
impl UnwindSafe for MTLSamplerBorderColor
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.