[][src]Struct dynamic_ocl::kernel::UnboundKernel

pub struct UnboundKernel(_);

An OpenCL kernel, with arguments not yet set

Methods

impl UnboundKernel[src]

pub fn bind_arguments<T: KernelArgList>(self, arguments: T) -> Result<Kernel<T>>[src]

Bind arguments to this kernel, performing type checks and calling clSetKernelArg to set values.

When OpenCL 1.2+ features are available, this call will attempt to check the type of each argument before each call to clSetKernelArg. If the types appear to be incompatible, as determined by KernelArg::is_param_type_compatible, it will panic. If this behavior isn't desired, bind_arguments_unchecked can be used instead.

pub fn bind_arguments_unchecked<T: KernelArgList>(
    self,
    arguments: T
) -> Result<Kernel<T>>
[src]

Bind arguments to this kernel, without performing assertions for number or type of arguments.

Safety

This function is not unsafe in terms of memory safety, but it should still be used with care, as it can lead to unexpected results if the argument types don't match those of the OpenCL code.

pub fn raw(&self) -> cl_kernel[src]

Trait Implementations

impl Debug for UnboundKernel[src]

impl Drop for UnboundKernel[src]

impl Eq for UnboundKernel[src]

impl Hash for UnboundKernel[src]

impl KernelInfo for UnboundKernel[src]

impl PartialEq<UnboundKernel> for UnboundKernel[src]

impl StructuralEq for UnboundKernel[src]

impl StructuralPartialEq for UnboundKernel[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> 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.