rrCreateContextDX

Creates DX12 compute context from existing D3D device.

RRError rrCreateContextDX(

uint32_t api_version,

ID3D12Device* d3d_device,

ID3D12CommandQueue* command_queue,

RRContext* context);

Applies to

DirectX

Parameters

Parameter

Input/Output

Description

api_version

input

API version.

d3d_device

input

D3D12 device to use.

command_queue

input

D3D12 command queue for the context.

context

output

RadeonRays context.

Return

Returns an error in case of a failure, or RRSuccess otherwise.