Function opencl3::memory::retain_mem_object [−][src]
pub 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.