pub struct AcceleratorKernel {
pub name: String,
pub operation: AcceleratorOperation,
pub input_buffers: Vec<u32>,
pub output_buffers: Vec<u32>,
pub parameters: HashMap<String, AcceleratorParameter>,
pub work_size: (usize, usize, usize),
pub local_size: (usize, usize, usize),
}Expand description
Accelerator kernel configuration
Fields§
§name: String§operation: AcceleratorOperation§input_buffers: Vec<u32>§output_buffers: Vec<u32>§parameters: HashMap<String, AcceleratorParameter>§work_size: (usize, usize, usize)§local_size: (usize, usize, usize)Trait Implementations§
Source§impl Clone for AcceleratorKernel
impl Clone for AcceleratorKernel
Source§fn clone(&self) -> AcceleratorKernel
fn clone(&self) -> AcceleratorKernel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Freeze for AcceleratorKernel
impl RefUnwindSafe for AcceleratorKernel
impl Send for AcceleratorKernel
impl Sync for AcceleratorKernel
impl Unpin for AcceleratorKernel
impl UnsafeUnpin for AcceleratorKernel
impl UnwindSafe for AcceleratorKernel
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<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