Function opencl3::context::context::get_context_info[][src]

pub fn get_context_info(
    context: *mut c_void,
    param_name: u32
) -> Result<InfoType, i32>
Expand description

Get specific information about an OpenCL context.
Calls clGetContextInfo to get the desired information about the context.

  • context - the cl_context of the OpenCL context.
  • param_name - the type of platform information being queried, see: Context Attributes.

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