[][src]Struct dynamic_ocl::queue::KernelCmd

#[must_use]
pub struct KernelCmd<'q, T: KernelArgList, W: WorkDims> { /* fields omitted */ }

A partially built command to execute a kernel

Methods

impl<'q, T: KernelArgList, W: WorkDims> KernelCmd<'q, T, W>[src]

pub fn global_work_offset(
    self,
    global_work_offset: impl Into<Option<W>>
) -> Self
[src]

Set the global work offset

pub fn local_work_size(self, local_work_size: impl Into<Option<W>>) -> Self[src]

Set the local work size

pub fn exec_ndrange(self, global_work_size: W) -> Result<()>[src]

Execute this kernel with the given global work size, blocking until completion.

Auto Trait Implementations

impl<'q, T, W> RefUnwindSafe for KernelCmd<'q, T, W> where
    W: RefUnwindSafe,
    <T as KernelArgList>::Bound: RefUnwindSafe

impl<'q, T, W> !Send for KernelCmd<'q, T, W>

impl<'q, T, W> !Sync for KernelCmd<'q, T, W>

impl<'q, T, W> Unpin for KernelCmd<'q, T, W> where
    W: Unpin

impl<'q, T, W> UnwindSafe for KernelCmd<'q, T, W> where
    W: UnwindSafe,
    <T as KernelArgList>::Bound: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.