Struct screen_13::driver::graphic::BlendModeBuilder
source · pub struct BlendModeBuilder { /* private fields */ }
Expand description
Builder for BlendMode
.
Implementations§
source§impl BlendModeBuilder
impl BlendModeBuilder
sourcepub fn blend_enable(self, value: bool) -> Self
pub fn blend_enable(self, value: bool) -> Self
Controls whether blending is enabled for the corresponding color attachment.
If blending is not enabled, the source fragment’s color for that attachment is passed through unmodified.
sourcepub fn src_color_blend_factor(self, value: BlendFactor) -> Self
pub fn src_color_blend_factor(self, value: BlendFactor) -> Self
Selects which blend factor is used to determine the source factors.
sourcepub fn dst_color_blend_factor(self, value: BlendFactor) -> Self
pub fn dst_color_blend_factor(self, value: BlendFactor) -> Self
Selects which blend factor is used to determine the destination factors.
sourcepub fn color_blend_op(self, value: BlendOp) -> Self
pub fn color_blend_op(self, value: BlendOp) -> Self
Selects which blend operation is used to calculate the RGB values to write to the color attachment.
sourcepub fn src_alpha_blend_factor(self, value: BlendFactor) -> Self
pub fn src_alpha_blend_factor(self, value: BlendFactor) -> Self
Selects which blend factor is used to determine the source factor.
sourcepub fn dst_alpha_blend_factor(self, value: BlendFactor) -> Self
pub fn dst_alpha_blend_factor(self, value: BlendFactor) -> Self
Selects which blend factor is used to determine the destination factor.
sourcepub fn alpha_blend_op(self, value: BlendOp) -> Self
pub fn alpha_blend_op(self, value: BlendOp) -> Self
Selects which blend operation is used to calculate the alpha values to write to the color attachment.
sourcepub fn color_write_mask(self, value: ColorComponentFlags) -> Self
pub fn color_write_mask(self, value: ColorComponentFlags) -> Self
A bitmask of specifying which of the R, G, B, and/or A components are enabled for writing, as described for the Color Write Mask.
Trait Implementations§
source§impl Clone for BlendModeBuilder
impl Clone for BlendModeBuilder
source§fn clone(&self) -> BlendModeBuilder
fn clone(&self) -> BlendModeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more