在指定索引设置OpenCL函数的参数。
template<typename T> bool SetArgument( const int kernel_index, // 内核索引 const int arg_index, // 函数参数索引 T value // 源代码 );
参数
kernel_index
[in] 内核对象索引。
arg_index
[in] 函数参数索引。
value
[in] 函数参数值。
返回值
如果执行成功,返回true,否则 - false。