Struct vulkano::pipeline::graphics::color_blend::AttachmentBlend
source · pub struct AttachmentBlend {
pub src_color_blend_factor: BlendFactor,
pub dst_color_blend_factor: BlendFactor,
pub color_blend_op: BlendOp,
pub src_alpha_blend_factor: BlendFactor,
pub dst_alpha_blend_factor: BlendFactor,
pub alpha_blend_op: BlendOp,
}
Expand description
Describes how the blending system should behave for an attachment.
Fields§
§src_color_blend_factor: BlendFactor
The operation to apply to the source color component before applying color_op
.
The default value is BlendFactor::SrcColor
.
dst_color_blend_factor: BlendFactor
The operation to apply to the destination color component before applying color_op
.
The default value is BlendFactor::Zero
.
color_blend_op: BlendOp
The operation to apply between the color components of the source and destination pixels, to produce the final pixel value.
The default value is BlendOp::Add
.
src_alpha_blend_factor: BlendFactor
The operation to apply to the source alpha component before applying alpha_op
.
The default value is BlendFactor::SrcColor
.
dst_alpha_blend_factor: BlendFactor
The operation to apply to the destination alpha component before applying alpha_op
.
The default value is BlendFactor::Zero
.
alpha_blend_op: BlendOp
The operation to apply between the alpha component of the source and destination pixels, to produce the final pixel value.
The default value is BlendOp::Add
.
Implementations§
source§impl AttachmentBlend
impl AttachmentBlend
sourcepub fn ignore_source() -> Self
pub fn ignore_source() -> Self
Builds an AttachmentBlend
where the output of the fragment shader is ignored and the
destination is untouched.
Trait Implementations§
source§impl Clone for AttachmentBlend
impl Clone for AttachmentBlend
source§fn clone(&self) -> AttachmentBlend
fn clone(&self) -> AttachmentBlend
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AttachmentBlend
impl Debug for AttachmentBlend
source§impl Default for AttachmentBlend
impl Default for AttachmentBlend
source§impl From<AttachmentBlend> for PipelineColorBlendAttachmentState
impl From<AttachmentBlend> for PipelineColorBlendAttachmentState
source§fn from(val: AttachmentBlend) -> Self
fn from(val: AttachmentBlend) -> Self
source§impl PartialEq for AttachmentBlend
impl PartialEq for AttachmentBlend
source§fn eq(&self, other: &AttachmentBlend) -> bool
fn eq(&self, other: &AttachmentBlend) -> bool
self
and other
values to be equal, and is used
by ==
.