pub unsafe fn retain_mem_object(memobj: *mut c_void) -> Result<(), i32>
Expand description

Retain an OpenCL memory object.
Calls clRetainMemObject to increment the memory object reference count.

  • memobj - the OpenCL memory object.

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.