[][src]Function opencl3::kernel::get_kernel_arg_info

pub fn get_kernel_arg_info(
    kernel: *mut c_void,
    arg_indx: u32,
    param_name: KernelArgInfo
) -> Result<InfoType, i32>

Get specific information about arguments of an OpenCL kernel.
Calls clGetKernelArgInfo to get the desired information about the kernel.

  • kernel - the OpenCL kernel.
  • arg_index - the kernel argument index.
  • param_name - the type of kernel information being queried, see: Kernel Argument Queries.

returns a Result containing the desired information in an InfoType enum or the error code from the OpenCL C API function.