pub struct BlendMode {
pub blend_enable: bool,
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,
pub color_write_mask: ColorComponentFlags,
}Fields
blend_enable: boolsrc_color_blend_factor: BlendFactordst_color_blend_factor: BlendFactorcolor_blend_op: BlendOpsrc_alpha_blend_factor: BlendFactordst_alpha_blend_factor: BlendFactoralpha_blend_op: BlendOpcolor_write_mask: ColorComponentFlagsImplementations
sourceimpl BlendMode
impl BlendMode
pub const Replace: Self = Self::REPLACE
👎 Deprecated:
use uppercase const
pub const Alpha: Self = Self::ALPHA
👎 Deprecated:
use uppercase const
pub const PreMultipliedAlpha: Self = Self::PRE_MULTIPLIED_ALPHA
👎 Deprecated:
use uppercase const
pub const REPLACE: Self = Self { blend_enable: false, src_color_blend_factor: vk::BlendFactor::SRC_COLOR, dst_color_blend_factor: vk::BlendFactor::ONE_MINUS_DST_COLOR, color_blend_op: vk::BlendOp::ADD, src_alpha_blend_factor: vk::BlendFactor::ZERO, dst_alpha_blend_factor: vk::BlendFactor::ZERO, alpha_blend_op: vk::BlendOp::ADD, color_write_mask: RGBA_COLOR_COMPONENTS, }
pub const ALPHA: Self = Self { blend_enable: true, src_color_blend_factor: vk::BlendFactor::SRC_ALPHA, dst_color_blend_factor: vk::BlendFactor::ONE_MINUS_SRC_ALPHA, color_blend_op: vk::BlendOp::ADD, src_alpha_blend_factor: vk::BlendFactor::SRC_ALPHA, dst_alpha_blend_factor: vk::BlendFactor::ONE_MINUS_SRC_ALPHA, alpha_blend_op: vk::BlendOp::ADD, color_write_mask: RGBA_COLOR_COMPONENTS, }
pub const PRE_MULTIPLIED_ALPHA: Self = Self { blend_enable: true, src_color_blend_factor: vk::BlendFactor::SRC_ALPHA, dst_color_blend_factor: vk::BlendFactor::ONE_MINUS_SRC_ALPHA, color_blend_op: vk::BlendOp::ADD, src_alpha_blend_factor: vk::BlendFactor::ONE, dst_alpha_blend_factor: vk::BlendFactor::ONE, alpha_blend_op: vk::BlendOp::ADD, color_write_mask: RGBA_COLOR_COMPONENTS, }
pub fn new() -> BlendModeBuilder
pub fn into_vk(&self) -> PipelineColorBlendAttachmentState
Trait Implementations
impl Copy for BlendMode
impl Eq for BlendMode
impl StructuralEq for BlendMode
impl StructuralPartialEq for BlendMode
Auto Trait Implementations
impl RefUnwindSafe for BlendMode
impl Send for BlendMode
impl Sync for BlendMode
impl Unpin for BlendMode
impl UnwindSafe for BlendMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more