Struct vulkano::pipeline::blend::AttachmentBlend [] [src]

pub struct AttachmentBlend {
    pub enabled: bool,
    pub color_op: BlendOp,
    pub color_source: BlendFactor,
    pub color_destination: BlendFactor,
    pub alpha_op: BlendOp,
    pub alpha_source: BlendFactor,
    pub alpha_destination: BlendFactor,
    pub mask_red: bool,
    pub mask_green: bool,
    pub mask_blue: bool,
    pub mask_alpha: bool,
}

Describes how the blending system should behave for an individual attachment.

Fields

If false, blending is ignored and the output is directly written to the attachment.

Methods

impl AttachmentBlend
[src]

Builds an AttachmentBlend where blending is disabled.

Builds an AttachmentBlend where the output of the fragment shader is ignored and the destination is untouched.

Builds an AttachmentBlend where the output will be merged with the existing value based on the alpha of the source.

Trait Implementations

impl Debug for AttachmentBlend
[src]

Formats the value using the given formatter.

impl Clone for AttachmentBlend
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for AttachmentBlend
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for AttachmentBlend
[src]