Radeon ProRender

rmlCreateContextFromClQueue

Creates a context from an OpenCL context.

rml_status rmlCreateContextFromClQueue( void* queue /* cl_command_queue */,
  rml_context* context);

API

OpenCL Interoperation

Parameters

Parameter Input/Output Description
queue input An OpenCL command queue handle.
context output A pointer to a resulting context handle.

Return and Status Codes

Returns a valid context handle in case of success and status:

  • RML_OK if the operation is successful
  • RML_ERROR_BAD_PARAMETER if queue is NULL or context is NULL

To get more details in case of failure, call rmlGetLastError().

The context should be released with rmlReleaseContext().