Function cl3::context::get_context_info[][src]

pub fn get_context_info(
    context: cl_context,
    param_name: cl_context_info
) -> Result<InfoType, cl_int>
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.