Radeon ProRender

rifGetDeviceCount

Gets the devices count for the selected backend API.

rif_int rifGetDeviceCount( rif_backend_api_type backend_api_type,
  rif_int * deviceCount);

Parameters

Parameter Input/Output Description
backend_api_type input The backend API.
deviceCount output The count of devices available for the selected backend API.

Return

Returns RIF_SUCCESS if the function is executed successfully, or RIF_ERROR code if a problem is encountered.

Errors

Possible error codes:

  • RIF_ERROR_INVALID_PARAMETER — deviceCount is nullptr.