[][src]Struct opencl_core::kernel::Kernel

pub struct Kernel { /* fields omitted */ }

Methods

impl Kernel[src]

pub unsafe fn new(kernel: ClKernel, program: Program) -> Kernel[src]

pub fn create(program: &Program, name: &str) -> Output<Kernel>[src]

pub unsafe fn set_arg<T>(&self, arg_index: usize, arg: &mut T) -> Output<()> where
    T: KernelArg
[src]

pub fn function_name(&self) -> Output<String>[src]

pub fn num_args(&self) -> Output<u32>[src]

pub fn reference_count(&self) -> Output<u32>[src]

pub fn context(&self) -> &Context[src]

pub fn program(&self) -> &Program[src]

pub fn attributes(&self) -> Output<String>[src]

pub fn read_lock(&self) -> RwLockReadGuard<ClKernel>[src]

pub fn write_lock(&self) -> RwLockWriteGuard<ClKernel>[src]

Trait Implementations

impl Clone for Kernel[src]

impl Drop for Kernel[src]

impl Send for Kernel[src]

impl Sync for Kernel[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.