[][src]Function opencl3::memory::get_mem_object_info

pub fn get_mem_object_info(
    memobj: *mut c_void,
    param_name: MemInfo
) -> Result<InfoType, i32>

Get information common to all OpenCL memory objects (buffer and image objects).
Calls clGetMemObjectInfo to get the desired information about the memory objects.

  • memobj - the OpenCL memory objects.
  • param_name - the type of memory object information being queried, see: Memory Object Info.

returns a Result containing the desired information in an InfoType enum or the error code from the OpenCL C API function.