rmlGetD3DResourceFromTensor
Gets an underlying Direct3D 12 resource from a tensor.
rml_status rmlGetD3DResourceFromTensor( |
rml_tensor tensor, |
void** resource /* ID3D12Resource** */); |
API
Direct3D 12 Interoperation
Parameters
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 successfulRML_ERROR_BAD_PARAMETER
if tensor is invalid or resource isNULL
To get more details in case of failure, call rmlGetLastError().
The resulting resource is a reference counted by the tensor.