pub struct Body<D: Dialect> {
pub instructions: Vec<Instruction<D>>,
pub shared_memories: Vec<SharedMemory<D>>,
pub pipelines: Vec<PipelineOps<D>>,
pub barriers: Vec<BarrierOps<D>>,
pub const_arrays: Vec<ConstArray<D>>,
pub local_arrays: Vec<LocalArray<D>>,
}Expand description
A body is composed of a list of instructions.
Fields§
§instructions: Vec<Instruction<D>>§pipelines: Vec<PipelineOps<D>>§barriers: Vec<BarrierOps<D>>§const_arrays: Vec<ConstArray<D>>§local_arrays: Vec<LocalArray<D>>Trait Implementations§
Auto Trait Implementations§
impl<D> Freeze for Body<D>
impl<D> RefUnwindSafe for Body<D>where
D: RefUnwindSafe,
impl<D> Send for Body<D>
impl<D> Sync for Body<D>
impl<D> Unpin for Body<D>where
D: Unpin,
impl<D> UnwindSafe for Body<D>where
D: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more