Trait rust_gpu_tools::opencl::KernelArgument
source · pub trait KernelArgument {
// Required method
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
.