Enum vulkano::pipeline::blend::LogicOp [−][src]
#[repr(u32)] pub enum LogicOp {}Show variants
Clear, And, AndReverse, Copy, AndInverted, Noop, Xor, Or, Nor, Equivalent, Invert, OrReverse, CopyInverted, OrInverted, Nand, Set,
Which logical operation to apply to the output values.
The operation is applied individually for each channel (red, green, blue and alpha).
Only relevant for integer or unsigned attachments.
Also note that some implementations don’t support logic operations.
Variants
Returns 0
.
Returns source & destination
.
Returns source & !destination
.
Returns source
.
Returns !source & destination
.
Returns destination
.
Returns source ^ destination
.
Returns source | destination
.
Returns !(source | destination)
.
Returns !(source ^ destination)
.
Returns !destination
.
Returns `source | !destination.
Returns !source
.
Returns !source | destination
.
Returns !(source & destination)
.
Returns !0
(all bits set to 1).
Trait Implementations
impl Copy for LogicOp
[src]
impl Eq for LogicOp
[src]
impl StructuralEq for LogicOp
[src]
impl StructuralPartialEq for LogicOp
[src]
Auto Trait Implementations
impl RefUnwindSafe for LogicOp
impl Send for LogicOp
impl Sync for LogicOp
impl Unpin for LogicOp
impl UnwindSafe for LogicOp
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Content for T
[src]
impl<T> Content for T
[src]pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]Builds a pointer to this type from a raw pointer.
pub fn is_size_suitable(usize) -> bool
[src]
pub fn is_size_suitable(usize) -> bool
[src]Returns true if the size is suitable to store a type like this.
pub fn indiv_size() -> usize
[src]
pub fn indiv_size() -> usize
[src]Returns the size of an individual element.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more