rrGetDevicePtrFromD3D12Resource

Obtains device pointer from D3D12 buffer.

RRError rrGetDevicePtrFromD3D12Resource(

RRContext context,

ID3D12Resource* resource,

size_t offset,

RRDevicePtr* device_ptr);

Applies to

DirectX

Parameters

Parameter

Input/Output

Description

context

input

RR API context.

resource

input

D3D12 resource to request pointer to.

offset

input

Offset within a buffer.

device_ptr

output

RadeonRays device pointer to the resource.

Return

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