Radeon Reset Bug fix service
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
namespace RadeonResetBugFixService.Tasks.BasicTasks
|
|
|
|
|
{
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using Contracts;
|
|
|
|
|
using Devices;
|
|
|
|
|
|
|
|
|
|
class ListDevicesTask : ITask
|
|
|
|
|
{
|
|
|
|
|
string ITask.TaskName => "Listing devices";
|
|
|
|
|
|
|
|
|
|
void ITask.Run(ILogger logger)
|
|
|
|
|
{
|
|
|
|
|
foreach (var device in DeviceHelper.GetDevices().ToArray())
|
|
|
|
|
{
|
|
|
|
|
logger.Log($"Found device {device.Description}: manufacturer='{device.Manufacturer}', service='{device.Service}', class='{device.ClassName}', isPresent={device.IsPresent}, isDisabled={device.IsDisabled}, errorCode={device.ErrorCode}, isAmdGPU={KnownDevices.IsAmdVideo(device)}, isVirtualVideo={KnownDevices.IsVirtualVideo(device)}");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|