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
enabled: bool
If false, blending is ignored and the output is directly written to the attachment.
color_op: BlendOp
color_source: BlendFactor
color_destination: BlendFactor
alpha_op: BlendOp
alpha_source: BlendFactor
alpha_destination: 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 Debug for AttachmentBlend
[src]
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 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 !=
.