Radeon ProRender


Gets an underlying Direct3D 12 resource from a tensor.

rml_status rmlGetD3DResourceFromTensor( rml_tensor tensor,
  void** resource /* ID3D12Resource** */);


Direct3D 12 Interoperation


Parameter Input/Output Description
tensor input A valid tensor handle.
resource output A pointer to a resulting resource pointer (ID3D12Resource*).

Return and Status Codes

Returns a non-NULL resource pointer in case of success and status:

  • RML_OK if the operation is successful
  • RML_ERROR_BAD_PARAMETER if tensor is invalid or resource is NULL

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

The resulting resource is a reference counted by the tensor.