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]
impl AttachmentBlend
pub fn pass_through() -> AttachmentBlend
[src]
pub fn pass_through() -> AttachmentBlend
Builds an AttachmentBlend
where blending is disabled.
pub fn ignore_source() -> AttachmentBlend
[src]
pub fn ignore_source() -> AttachmentBlend
Builds an AttachmentBlend
where the output of the fragment shader is ignored and the
destination is untouched.
pub fn alpha_blending() -> AttachmentBlend
[src]
pub 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 Debug for AttachmentBlend
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for AttachmentBlend
[src]
impl Clone for AttachmentBlend
fn clone(&self) -> AttachmentBlend
[src]
fn clone(&self) -> AttachmentBlend
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for AttachmentBlend
[src]
impl PartialEq for AttachmentBlend
fn eq(&self, other: &AttachmentBlend) -> bool
[src]
fn eq(&self, other: &AttachmentBlend) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &AttachmentBlend) -> bool
[src]
fn ne(&self, other: &AttachmentBlend) -> bool
This method tests for !=
.
impl Eq for AttachmentBlend
[src]
impl Eq for AttachmentBlend
Auto Trait Implementations
impl Send for AttachmentBlend
impl Send for AttachmentBlend
impl Sync for AttachmentBlend
impl Sync for AttachmentBlend