#[repr(transparent)]pub struct PipelineColorBlendAttachmentState(pub VkPipelineColorBlendAttachmentState);Tuple Fields§
§0: VkPipelineColorBlendAttachmentStateImplementations§
Source§impl PipelineColorBlendAttachmentState
impl PipelineColorBlendAttachmentState
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
Auto Trait Implementations§
impl Freeze for PipelineColorBlendAttachmentState
impl RefUnwindSafe for PipelineColorBlendAttachmentState
impl Send for PipelineColorBlendAttachmentState
impl Sync for PipelineColorBlendAttachmentState
impl Unpin for PipelineColorBlendAttachmentState
impl UnsafeUnpin for PipelineColorBlendAttachmentState
impl UnwindSafe for PipelineColorBlendAttachmentState
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