#[repr(C)]pub struct VkPipelineColorBlendAttachmentState {
pub blendEnable: VkBool32,
pub srcColorBlendFactor: VkBlendFactor,
pub dstColorBlendFactor: VkBlendFactor,
pub colorBlendOp: VkBlendOp,
pub srcAlphaBlendFactor: VkBlendFactor,
pub dstAlphaBlendFactor: VkBlendFactor,
pub alphaBlendOp: VkBlendOp,
pub colorWriteMask: VkColorComponentFlags,
}Fields§
§blendEnable: VkBool32§srcColorBlendFactor: VkBlendFactor§dstColorBlendFactor: VkBlendFactor§colorBlendOp: VkBlendOp§srcAlphaBlendFactor: VkBlendFactor§dstAlphaBlendFactor: VkBlendFactor§alphaBlendOp: VkBlendOp§colorWriteMask: VkColorComponentFlagsImplementations§
Source§impl VkPipelineColorBlendAttachmentState
impl VkPipelineColorBlendAttachmentState
pub const NOBLEND: Self
Sourcepub const PREMULTIPLIED: Self
pub const PREMULTIPLIED: Self
src * 1 + dst * (1 - src.a) for both color and alpha.
https://stackoverflow.com/questions/18918643/how-to-achieve-d3d-output-with-premultiplied-alpha-for-use-with-d3dimage-in-wpf
pub const fn enabled(self) -> Self
pub const fn disabled(self) -> Self
pub const fn color_blend_factor_src(self, f: VkBlendFactor) -> Self
pub const fn color_blend_factor_dst(self, f: VkBlendFactor) -> Self
pub const fn alpha_blend_factor_src(self, f: VkBlendFactor) -> Self
pub const fn alpha_blend_factor_dst(self, f: VkBlendFactor) -> Self
pub const fn color_blend_op(self, op: VkBlendOp) -> Self
pub const fn alpha_blend_op(self, op: VkBlendOp) -> Self
pub const fn color_blend( self, src: VkBlendFactor, op: VkBlendOp, dst: VkBlendFactor, ) -> Self
pub const fn alpha_blend( self, src: VkBlendFactor, op: VkBlendOp, dst: VkBlendFactor, ) -> Self
Trait Implementations§
Source§impl Clone for VkPipelineColorBlendAttachmentState
impl Clone for VkPipelineColorBlendAttachmentState
Source§fn clone(&self) -> VkPipelineColorBlendAttachmentState
fn clone(&self) -> VkPipelineColorBlendAttachmentState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VkPipelineColorBlendAttachmentState
impl RefUnwindSafe for VkPipelineColorBlendAttachmentState
impl Send for VkPipelineColorBlendAttachmentState
impl Sync for VkPipelineColorBlendAttachmentState
impl Unpin for VkPipelineColorBlendAttachmentState
impl UnsafeUnpin for VkPipelineColorBlendAttachmentState
impl UnwindSafe for VkPipelineColorBlendAttachmentState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more