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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BlendModeBuilder
impl Debug for BlendModeBuilder
Source§impl Default for BlendModeBuilder
impl Default for BlendModeBuilder
impl Copy for BlendModeBuilder
Auto Trait Implementations§
impl Freeze for BlendModeBuilder
impl RefUnwindSafe for BlendModeBuilder
impl Send for BlendModeBuilder
impl Sync for BlendModeBuilder
impl Unpin for BlendModeBuilder
impl UnwindSafe for BlendModeBuilder
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)