pub struct ComputeKernel<D: Dialect> {
pub tensor_maps: Vec<Binding<D>>,
pub buffers: Vec<Binding<D>>,
pub scalars: Vec<(Elem<D>, usize)>,
pub meta_static_len: usize,
pub body: Body<D>,
pub cube_dim: CubeDim,
pub cluster_dim: Option<CubeDim>,
pub extensions: Vec<D::Extension>,
pub flags: Flags,
pub items: HashSet<Item<D>>,
pub kernel_name: String,
}Fields§
§tensor_maps: Vec<Binding<D>>§buffers: Vec<Binding<D>>§scalars: Vec<(Elem<D>, usize)>§meta_static_len: usize§body: Body<D>§cube_dim: CubeDim§cluster_dim: Option<CubeDim>§extensions: Vec<D::Extension>§flags: Flags§items: HashSet<Item<D>>§kernel_name: StringImplementations§
Source§impl<D: Dialect> ComputeKernel<D>
impl<D: Dialect> ComputeKernel<D>
Trait Implementations§
Source§impl<D: Clone + Dialect> Clone for ComputeKernel<D>
impl<D: Clone + Dialect> Clone for ComputeKernel<D>
Source§fn clone(&self) -> ComputeKernel<D>
fn clone(&self) -> ComputeKernel<D>
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 moreAuto Trait Implementations§
impl<D> Freeze for ComputeKernel<D>
impl<D> RefUnwindSafe for ComputeKernel<D>
impl<D> Send for ComputeKernel<D>
impl<D> Sync for ComputeKernel<D>
impl<D> Unpin for ComputeKernel<D>
impl<D> UnwindSafe for ComputeKernel<D>
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