pub struct KernelOperation {
pub command_queue_opts: Option<CommandQueueOptions>,
/* private fields */
}Fields§
§command_queue_opts: Option<CommandQueueOptions>Implementations§
Source§impl KernelOperation
impl KernelOperation
pub fn new(name: &str) -> KernelOperation
pub fn name(&self) -> &str
pub fn command_queue_opts(&self) -> Option<CommandQueueOptions>
pub fn args(&self) -> &[(usize, *const c_void)]
pub fn mut_args(&mut self) -> &mut [(usize, *const c_void)]
pub fn with_dims<D: Into<Dims>>(self, dims: D) -> KernelOperation
pub fn with_work<W: Into<Work>>(self, work: W) -> KernelOperation
pub fn add_arg<A>(self, arg: &mut A) -> KernelOperationwhere
A: KernelArg,
pub fn with_command_queue_options( self, opts: CommandQueueOptions, ) -> KernelOperation
pub fn argc(&self) -> usize
pub fn work(&self) -> Output<Work>
Auto Trait Implementations§
impl Freeze for KernelOperation
impl RefUnwindSafe for KernelOperation
impl !Send for KernelOperation
impl !Sync for KernelOperation
impl Unpin for KernelOperation
impl UnwindSafe for KernelOperation
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