Radeon ProRender


Creates a new context object associated with the specified OpenCL context.

rif_int rifCreateContextFromOpenClContext( rif_int api_version,
  void * context,
  void * device,
  void * queue,
  rif_char const * cache_path,
  rif_context * out_context);


Parameter Input/Output Description
api_version input The current RadeonImageFilters version.
context input A valid cl_context object.
device input A valid cl_device_id object.
queue input A valid cl_command_queue object.
cache_path input A path to the directory which will contain prebuilt binaries.
out_context output A pointer to the context object which will be created if the function performs successfully.


Returns RIF_SUCCESS if the function is executed successfully, or RIF_ERROR code if a problem is encountered.


Possible error codes:

  • RIF_ERROR_INVALID_API_VERSION — API version is unsupported.
  • RIF_ERROR_INVALID_PARAMETER — any of context, device, queue, out_context is nullptr.
  • RIF_ERROR_INTERNAL_ERROR — an internal error occurs.