Struct blade_graphics::BlendComponent
source · pub struct BlendComponent {
pub src_factor: BlendFactor,
pub dst_factor: BlendFactor,
pub operation: BlendOperation,
}Expand description
Describes a blend component of a BlendState.
Fields§
§src_factor: BlendFactorMultiplier for the source, which is produced by the fragment shader.
dst_factor: BlendFactorMultiplier for the destination, which is stored in the target.
operation: BlendOperationThe binary operation applied to the source and destination, multiplied by their respective factors.
Implementations§
Trait Implementations§
source§impl Clone for BlendComponent
impl Clone for BlendComponent
source§fn clone(&self) -> BlendComponent
fn clone(&self) -> BlendComponent
Returns a copy 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 BlendComponent
impl Debug for BlendComponent
source§impl Default for BlendComponent
impl Default for BlendComponent
source§impl Hash for BlendComponent
impl Hash for BlendComponent
source§impl PartialEq for BlendComponent
impl PartialEq for BlendComponent
impl Copy for BlendComponent
impl Eq 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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.