Radeon ProRender

rmlCreateContextFromD3DQueue

Creates a context from an Direct3D 12 device and queue.

rml_status rmlCreateContextFromD3DQueue( void* command_queue, /* ID3D12CommandQueue* */
  rml_context* context);

API

Direct3D 12 Interoperation

Parameters

Parameter Input/Output Description
command_queue input A Direct3D abstraction is used to submit command lists for execution.
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 command_queue or context is NULL
  • RML_ERROR_INTERNAL in case of an internal error

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

The context should be released with rmlReleaseContext().