Function opencl3::kernel::set_kernel_arg_svm_pointer [−][src]
pub fn set_kernel_arg_svm_pointer(
kernel: *mut c_void,
arg_index: u32,
arg_ptr: *const c_void
) -> Result<(), i32>
Expand description
Set set a SVM pointer as the argument value for a specific argument of a kernel.
Calls clSetKernelArgSVMPointer.
kernel
- the OpenCL kernel.arg_index
- the kernel argument index.arg_ptr
- the SVM pointer to the data for the argument at arg_index.
returns an empty Result or the error code from the OpenCL C API function.