Trait rust_gpu_tools::opencl::KernelArgument[][src]

pub trait KernelArgument {
    fn push(&self, kernel: &mut Kernel<'_>);
}
Expand description

Abstraction for kernel arguments.

The kernel doesn’t support being called with custom types, hence some conversion might be needed. This trait enables automatic coversions, so that any type implementing it can be passed into a Kernel.

Required methods

Apply the kernel argument to the kernel.

Implementations on Foreign Types

Implementors