Function opencl3::kernel::set_kernel_arg[][src]

pub fn set_kernel_arg(
    kernel: *mut c_void,
    arg_index: u32,
    arg_size: usize,
    arg_value: *const c_void
) -> Result<(), i32>
Expand description

Set the argument value for a specific argument of a kernel.
Calls clSetKernelArg.

  • kernel - the OpenCL kernel.
  • arg_index - the kernel argument index.
  • arg_ptr - pointer to the data for the argument at arg_index.

returns an empty Result or the error code from the OpenCL C API function.