#[repr(transparent)]pub struct BlendFactor(pub UInteger);Expand description
Blend factor for color blending.
C++ equivalent: MTL::BlendFactor
Tuple Fields§
§0: UIntegerImplementations§
Source§impl BlendFactor
impl BlendFactor
pub const ZERO: Self
pub const ONE: Self
pub const SOURCE_COLOR: Self
pub const ONE_MINUS_SOURCE_COLOR: Self
pub const SOURCE_ALPHA: Self
pub const ONE_MINUS_SOURCE_ALPHA: Self
pub const DESTINATION_COLOR: Self
pub const ONE_MINUS_DESTINATION_COLOR: Self
pub const DESTINATION_ALPHA: Self
pub const ONE_MINUS_DESTINATION_ALPHA: Self
pub const SOURCE_ALPHA_SATURATED: Self
pub const BLEND_COLOR: Self
pub const ONE_MINUS_BLEND_COLOR: Self
pub const BLEND_ALPHA: Self
pub const ONE_MINUS_BLEND_ALPHA: Self
pub const SOURCE1_COLOR: Self
pub const ONE_MINUS_SOURCE1_COLOR: Self
pub const SOURCE1_ALPHA: Self
pub const ONE_MINUS_SOURCE1_ALPHA: Self
pub const UNSPECIALIZED: Self
Trait Implementations§
Source§impl Clone for BlendFactor
impl Clone for BlendFactor
Source§fn clone(&self) -> BlendFactor
fn clone(&self) -> BlendFactor
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 BlendFactor
impl Debug for BlendFactor
Source§impl Default for BlendFactor
impl Default for BlendFactor
Source§fn default() -> BlendFactor
fn default() -> BlendFactor
Returns the “default value” for a type. Read more
Source§impl Hash for BlendFactor
impl Hash for BlendFactor
Source§impl PartialEq for BlendFactor
impl PartialEq for BlendFactor
impl Copy for BlendFactor
impl Eq for BlendFactor
impl StructuralPartialEq for BlendFactor
Auto Trait Implementations§
impl Freeze for BlendFactor
impl RefUnwindSafe for BlendFactor
impl Send for BlendFactor
impl Sync for BlendFactor
impl Unpin for BlendFactor
impl UnwindSafe for BlendFactor
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