Struct vulkano::pipeline::graphics::color_blend::AttachmentBlend
source · [−]pub struct AttachmentBlend {
pub color_op: BlendOp,
pub color_source: BlendFactor,
pub color_destination: BlendFactor,
pub alpha_op: BlendOp,
pub alpha_source: BlendFactor,
pub alpha_destination: BlendFactor,
}
Expand description
Describes how the blending system should behave for an attachment.
Fields
color_op: BlendOp
The operation to apply between the color components of the source and destination pixels, to produce the final pixel value.
color_source: BlendFactor
The operation to apply to the source color component before applying color_op
.
color_destination: BlendFactor
The operation to apply to the destination color component before applying color_op
.
alpha_op: BlendOp
The operation to apply between the alpha component of the source and destination pixels, to produce the final pixel value.
alpha_source: BlendFactor
The operation to apply to the source alpha component before applying alpha_op
.
alpha_destination: BlendFactor
The operation to apply to the destination alpha component before applying alpha_op
.
Implementations
sourceimpl AttachmentBlend
impl AttachmentBlend
sourcepub fn ignore_source() -> Self
pub fn ignore_source() -> Self
Builds an AttachmentBlend
where the output of the fragment shader is ignored and the
destination is untouched.
Trait Implementations
sourceimpl Clone for AttachmentBlend
impl Clone for AttachmentBlend
sourcefn clone(&self) -> AttachmentBlend
fn clone(&self) -> AttachmentBlend
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AttachmentBlend
impl Debug for AttachmentBlend
sourceimpl From<AttachmentBlend> for PipelineColorBlendAttachmentState
impl From<AttachmentBlend> for PipelineColorBlendAttachmentState
sourcefn from(val: AttachmentBlend) -> Self
fn from(val: AttachmentBlend) -> Self
Performs the conversion.
sourceimpl PartialEq<AttachmentBlend> for AttachmentBlend
impl PartialEq<AttachmentBlend> for AttachmentBlend
sourcefn eq(&self, other: &AttachmentBlend) -> bool
fn eq(&self, other: &AttachmentBlend) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AttachmentBlend) -> bool
fn ne(&self, other: &AttachmentBlend) -> bool
This method tests for !=
.
impl Copy for AttachmentBlend
impl Eq for AttachmentBlend
impl StructuralEq for AttachmentBlend
impl StructuralPartialEq for AttachmentBlend
Auto Trait Implementations
impl RefUnwindSafe for AttachmentBlend
impl Send for AttachmentBlend
impl Sync for AttachmentBlend
impl Unpin for AttachmentBlend
impl UnwindSafe for AttachmentBlend
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more