#[repr(u64)]pub enum MTLBlendFactor {
Zero = 0,
One = 1,
SourceColor = 2,
OneMinusSourceColor = 3,
SourceAlpha = 4,
OneMinusSourceAlpha = 5,
DestinationColor = 6,
OneMinusDestinationColor = 7,
DestinationAlpha = 8,
OneMinusDestinationAlpha = 9,
}Expand description
Blend factor
Variants§
Zero = 0
0
One = 1
1
SourceColor = 2
Source color
OneMinusSourceColor = 3
1 - source color
SourceAlpha = 4
Source alpha
OneMinusSourceAlpha = 5
1 - source alpha
DestinationColor = 6
Destination color
OneMinusDestinationColor = 7
1 - destination color
DestinationAlpha = 8
Destination alpha
OneMinusDestinationAlpha = 9
1 - destination alpha
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 Default for MTLBlendFactor
impl Default for MTLBlendFactor
Source§fn default() -> MTLBlendFactor
fn default() -> MTLBlendFactor
Returns the “default value” for a type. Read more
impl Copy 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