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

pub struct AttachmentBlend {
    pub enabled: bool,
    pub color_op: BlendOp,
    pub color_src: BlendFactor,
    pub color_dst: BlendFactor,
    pub alpha_op: BlendOp,
    pub alpha_src: BlendFactor,
    pub alpha_dst: 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

enabled: bool

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

color_op: BlendOp color_src: BlendFactor color_dst: BlendFactor alpha_op: BlendOp alpha_src: BlendFactor alpha_dst: BlendFactor mask_red: bool mask_green: bool mask_blue: bool mask_alpha: bool

Methods

impl AttachmentBlend
[src]

fn pass_through() -> AttachmentBlend

Builds an AttachmentBlend where blending is disabled.

fn ignore_source() -> AttachmentBlend

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

fn alpha_blending() -> AttachmentBlend

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

Trait Implementations

impl Eq for AttachmentBlend
[src]

impl PartialEq for AttachmentBlend
[src]

fn eq(&self, __arg_0: &AttachmentBlend) -> bool

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

fn ne(&self, __arg_0: &AttachmentBlend) -> bool

This method tests for !=.

impl Clone for AttachmentBlend
[src]

fn clone(&self) -> AttachmentBlend

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for AttachmentBlend
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.