Created tool to display the names of the dxgi devices

This commit is contained in:
loki
2020-01-23 23:43:39 +01:00
parent 8da7739728
commit 95f90501e4
4 changed files with 92 additions and 5 deletions

View File

@@ -439,10 +439,11 @@ public:
return -1;
}
DXGI_ADAPTER_DESC adapter_desc;
adapter->GetDesc(&adapter_desc);
BOOST_LOG(info)
<< "Device Description : "sv << adapter_desc.Description << std::endl
<< "Device Vendor ID : 0x"sv << util::hex(adapter_desc.VendorId).to_string_view() << std::endl
<< "Device Device ID : 0x"sv << util::hex(adapter_desc.DeviceId).to_string_view() << std::endl
<< "Device Video Mem : "sv << adapter_desc.DedicatedVideoMemory / 1048576 << " MiB"sv << std::endl
@@ -705,4 +706,4 @@ std::shared_ptr<display_t> display() {
return disp;
}
}
}