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
source§fn eq(&self, other: &BlendComponent) -> bool
fn eq(&self, other: &BlendComponent) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for BlendComponent
impl Eq for BlendComponent
impl StructuralEq for BlendComponent
impl StructuralPartialEq for BlendComponent
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.