Enum nannou_wgpu::BlendOperation [−]
#[repr(C)]
pub enum BlendOperation {
Add,
Subtract,
ReverseSubtract,
Min,
Max,
}
Expand description
Alpha blend operation.
Alpha blending is very complicated: see the OpenGL or Vulkan spec for more information.
Variants
Src + Dst
Src - Dst
Dst - Src
min(Src, Dst)
max(Src, Dst)
Trait Implementations
impl Clone for BlendOperation
impl Clone for BlendOperation
pub fn clone(&self) -> BlendOperation
pub fn clone(&self) -> BlendOperation
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for BlendOperation
impl Debug for BlendOperation
impl Default for BlendOperation
impl Default for BlendOperation
pub fn default() -> BlendOperation
pub fn default() -> BlendOperation
Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for BlendOperation
impl<'de> Deserialize<'de> for BlendOperation
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<BlendOperation, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<BlendOperation, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Hash for BlendOperation
impl Hash for BlendOperation
impl PartialEq<BlendOperation> for BlendOperation
impl PartialEq<BlendOperation> for BlendOperation
impl Serialize for BlendOperation
impl Serialize for BlendOperation
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for BlendOperation
impl Eq for BlendOperation
impl StructuralEq for BlendOperation
impl StructuralPartialEq for BlendOperation
Auto Trait Implementations
impl RefUnwindSafe for BlendOperation
impl Send for BlendOperation
impl Sync for BlendOperation
impl Unpin for BlendOperation
impl UnwindSafe for BlendOperation
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.