Struct ocl_core::types::abs::Kernel
[−]
[src]
pub struct Kernel(_);
cl_kernel
Thread Safety
Not thread safe: do not implement Send or Sync.
It's possible to do with some work but it's not worth the bother, just make another identical kernel in the other thread and call it good.
Methods
impl Kernel[src]
unsafe fn from_fresh_ptr(ptr: cl_kernel) -> Kernel
Only call this when passing a newly created pointer directly from
clCreate.... Do not use this to clone or copy.
unsafe fn as_ptr(&self) -> cl_kernel
Returns a pointer, do not store it.
fn program(&self) -> OclResult<Program>
Returns the program associated with this kernel.
Trait Implementations
impl Debug for Kernel[src]
impl Clone for Kernel[src]
fn clone(&self) -> Kernel
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more