pub struct ImageAtomic<R> {
pub view: R,
pub index: u32,
pub dim: Dim,
pub texel: [u32; 3],
pub layer: Option<u32>,
pub op: ImageAtomicOp,
pub signed: bool,
pub value: u32,
}Expand description
An atomic operation on one texel of a single-channel 32-bit unordered-access texture. Its result is the word as it was
before; the program reads it when its Statement::ImageAtomic has a result.
Fields§
§view: RThe unordered-access view operated on.
index: u32Which view of an array of views (0 for a view that is not in an array).
dim: DimThe view’s shape.
texel: [u32; 3]The integer address of the texel (x, y, z; the rest 0).
layer: Option<u32>An array’s layer.
op: ImageAtomicOpThe operation.
signed: boolWhether Min and Max compare the words as signed integers.
value: u32The program’s operand.
Trait Implementations§
Source§impl<R: Clone> Clone for ImageAtomic<R>
impl<R: Clone> Clone for ImageAtomic<R>
impl<R: Copy> Copy for ImageAtomic<R>
Auto Trait Implementations§
impl<R> Freeze for ImageAtomic<R>where
R: Freeze,
impl<R> RefUnwindSafe for ImageAtomic<R>where
R: RefUnwindSafe,
impl<R> Send for ImageAtomic<R>where
R: Send,
impl<R> Sync for ImageAtomic<R>where
R: Sync,
impl<R> Unpin for ImageAtomic<R>where
R: Unpin,
impl<R> UnsafeUnpin for ImageAtomic<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for ImageAtomic<R>where
R: UnwindSafe,
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