Function cl3::kernel::release_kernel
source · pub unsafe fn release_kernel(kernel: cl_kernel) -> Result<(), cl_int>
Expand description
Release an OpenCL
kernel.
Calls clReleaseKernel to decrement the kernel reference count.
kernel
- theOpenCL
kernel.
returns an empty Result or the error code from the OpenCL
C API function.
§Safety
This function is unsafe because it changes the OpenCL
object reference count.