pub struct BlendComponent { /* private fields */ }Expand description
One channel group of a BlendState: an operation plus the factors
applied to the incoming and the existing value.
Implementations§
Source§impl BlendComponent
Named constructors for the pipeline state structs.
impl BlendComponent
Named constructors for the pipeline state structs.
Sourcepub fn source_alpha_over() -> Self
pub fn source_alpha_over() -> Self
The conventional alpha-blend component: source + destination
with the source scaled by its alpha and the destination by the
remaining alpha.
§Returns
Self- The assembled blend component.
Source§impl BlendComponent
impl BlendComponent
pub fn get_operation(&self) -> BlendOperation
pub fn get_mut_operation(&mut self) -> &mut BlendOperation
pub fn set_operation(&mut self, val: BlendOperation) -> &mut Self
pub fn get_source(&self) -> BlendFactor
pub fn get_mut_source(&mut self) -> &mut BlendFactor
pub fn set_source(&mut self, val: BlendFactor) -> &mut Self
pub fn get_destination(&self) -> BlendFactor
pub fn get_mut_destination(&mut self) -> &mut BlendFactor
pub fn set_destination(&mut self, val: BlendFactor) -> &mut Self
Trait Implementations§
Source§impl Clone for BlendComponent
impl Clone for BlendComponent
impl Copy for BlendComponent
Source§impl Debug for BlendComponent
impl Debug for BlendComponent
Source§impl Default for BlendComponent
impl Default for BlendComponent
Source§impl PartialEq for BlendComponent
impl PartialEq for BlendComponent
impl StructuralPartialEq for BlendComponent
Auto Trait Implementations§
impl Freeze for BlendComponent
impl RefUnwindSafe for BlendComponent
impl Send for BlendComponent
impl Sync for BlendComponent
impl Unpin for BlendComponent
impl UnsafeUnpin for BlendComponent
impl UnwindSafe for BlendComponent
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