CLSetKernelArg
Sets a parameter for the OpenCL function.
bool CLSetKernelArg(
int kernel,
uint arg_index,
void arg_value
); |
Parameters
kernel
[in] Handle to a kernel of the OpenCL program.
arg_index
[in] The number of the function argument, numbering starts with zero.
arg_value
[in] The value of the function argument.
Return Value
Note
•ERR_INVALID_PARAMETER,
•ERR_OPENCL_INVALID_HANDLE – invalid handle to the OpenCL kernel.
•ERR_OPENCL_SET_KERNEL_PARAMETER - internal error of OpenCL.