pub struct BarrierOperation<'c> { /* private fields */ }Expand description
A barrier operation. Synchronizes all work items of a workgroup..
The barrier op synchronizes all work items of a workgroup. It is used
to coordinate communication between the work items of the workgroup.
gpu.barrierwaits until all work items in the workgroup have reached this point and all memory accesses made by these work items prior to the op are visible to all work items in the workgroup. Data hazards between work items accessing the same memory can be avoided by synchronizing work items in-between these accesses.
Either none or all work items of a workgroup need to execute this op in convergence.
Implementations§
Source§impl<'c> BarrierOperation<'c>
impl<'c> BarrierOperation<'c>
Trait Implementations§
Source§impl<'c> Clone for BarrierOperation<'c>
impl<'c> Clone for BarrierOperation<'c>
Source§fn clone(&self) -> BarrierOperation<'c>
fn clone(&self) -> BarrierOperation<'c>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'c> Debug for BarrierOperation<'c>
impl<'c> Debug for BarrierOperation<'c>
Source§impl<'b> From<BarrierOperation<'b>> for GpuDialectOperation<'b>
impl<'b> From<BarrierOperation<'b>> for GpuDialectOperation<'b>
Source§fn from(op: BarrierOperation<'b>) -> Self
fn from(op: BarrierOperation<'b>) -> Self
Converts to this type from the input type.
Source§impl<'c> From<BarrierOperation<'c>> for Operation<'c>
impl<'c> From<BarrierOperation<'c>> for Operation<'c>
Source§fn from(operation: BarrierOperation<'c>) -> Self
fn from(operation: BarrierOperation<'c>) -> Self
Converts to this type from the input type.
Source§impl<'c> PartialEq for BarrierOperation<'c>
impl<'c> PartialEq for BarrierOperation<'c>
Source§impl<'c> TryFrom<Operation<'c>> for BarrierOperation<'c>
impl<'c> TryFrom<Operation<'c>> for BarrierOperation<'c>
impl<'c> Eq for BarrierOperation<'c>
impl<'c> StructuralPartialEq for BarrierOperation<'c>
Auto Trait Implementations§
impl<'c> Freeze for BarrierOperation<'c>
impl<'c> RefUnwindSafe for BarrierOperation<'c>
impl<'c> !Send for BarrierOperation<'c>
impl<'c> !Sync for BarrierOperation<'c>
impl<'c> Unpin for BarrierOperation<'c>
impl<'c> UnwindSafe for BarrierOperation<'c>
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