#[repr(transparent)]pub struct MTLBlendFactor(pub NSUInteger);Available on crate feature
MTLRenderPipeline only.Expand description
Tuple Fields§
§0: NSUIntegerImplementations§
Source§impl MTLBlendFactor
impl MTLBlendFactor
pub const Zero: Self
pub const One: Self
pub const SourceColor: Self
pub const OneMinusSourceColor: Self
pub const SourceAlpha: Self
pub const OneMinusSourceAlpha: Self
pub const DestinationColor: Self
pub const OneMinusDestinationColor: Self
pub const DestinationAlpha: Self
pub const OneMinusDestinationAlpha: Self
pub const SourceAlphaSaturated: Self
pub const BlendColor: Self
pub const OneMinusBlendColor: Self
pub const BlendAlpha: Self
pub const OneMinusBlendAlpha: Self
pub const Source1Color: Self
pub const OneMinusSource1Color: Self
pub const Source1Alpha: Self
pub const OneMinusSource1Alpha: Self
Sourcepub const Unspecialized: Self
pub const Unspecialized: Self
Defers assigning the blend factor.
Until you specialize this value in the pipeline state, it:
- behaves as
MTLBlendFactorOneforsourceRGBBlendFactorandsourceAlphaBlendFactor - behaves as
MTLBlendFactorZerofordestinationRGBBlendFactoranddestinationAlphaBlendFactor
Trait Implementations§
Source§impl Clone for MTLBlendFactor
impl Clone for MTLBlendFactor
Source§fn clone(&self) -> MTLBlendFactor
fn clone(&self) -> MTLBlendFactor
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 MTLBlendFactor
impl Debug for MTLBlendFactor
Source§impl Encode for MTLBlendFactor
impl Encode for MTLBlendFactor
Source§impl Hash for MTLBlendFactor
impl Hash for MTLBlendFactor
Source§impl Ord for MTLBlendFactor
impl Ord for MTLBlendFactor
Source§fn cmp(&self, other: &MTLBlendFactor) -> Ordering
fn cmp(&self, other: &MTLBlendFactor) -> 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 MTLBlendFactor
impl PartialEq for MTLBlendFactor
Source§impl PartialOrd for MTLBlendFactor
impl PartialOrd for MTLBlendFactor
Source§impl RefEncode for MTLBlendFactor
impl RefEncode for MTLBlendFactor
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 MTLBlendFactor
impl Eq for MTLBlendFactor
impl StructuralPartialEq for MTLBlendFactor
Auto Trait Implementations§
impl Freeze for MTLBlendFactor
impl RefUnwindSafe for MTLBlendFactor
impl Send for MTLBlendFactor
impl Sync for MTLBlendFactor
impl Unpin for MTLBlendFactor
impl UnwindSafe for MTLBlendFactor
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.