pub enum ImageAtomicOp {
Add,
Sub,
And,
Or,
Xor,
Min,
Max,
Exchange,
}Expand description
What an atomic operation on a texel does with the word it holds and the program’s value.
Variants§
Add
Add the program’s value to the word.
Sub
Subtract the program’s value from the word.
And
Bitwise and.
Or
Bitwise or.
Xor
Bitwise exclusive or.
Min
The smaller of the two (signed or unsigned, as ImageAtomic::signed says).
Max
The larger of the two (signed or unsigned, as ImageAtomic::signed says).
Exchange
Store the program’s value.
Trait Implementations§
Source§impl Clone for ImageAtomicOp
impl Clone for ImageAtomicOp
impl Copy for ImageAtomicOp
Source§impl Debug for ImageAtomicOp
impl Debug for ImageAtomicOp
impl Eq for ImageAtomicOp
Source§impl PartialEq for ImageAtomicOp
impl PartialEq for ImageAtomicOp
impl StructuralPartialEq for ImageAtomicOp
Auto Trait Implementations§
impl Forget for ImageAtomicOp
impl Freeze for ImageAtomicOp
impl RefUnwindSafe for ImageAtomicOp
impl Send for ImageAtomicOp
impl Sync for ImageAtomicOp
impl Unpin for ImageAtomicOp
impl UnsafeUnpin for ImageAtomicOp
impl UnwindSafe for ImageAtomicOp
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.