mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[dxvk] Add adapter logging
This commit is contained in:
parent
0fdde6a94e
commit
6e981b91b6
@ -6,7 +6,8 @@ namespace dxvk {
|
|||||||
DxgiFactory::DxgiFactory()
|
DxgiFactory::DxgiFactory()
|
||||||
: m_instance(new DxvkInstance()),
|
: m_instance(new DxvkInstance()),
|
||||||
m_adapters(m_instance->enumAdapters()) {
|
m_adapters(m_instance->enumAdapters()) {
|
||||||
|
for (const auto& adapter : m_adapters)
|
||||||
|
adapter->logAdapterInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -218,6 +218,21 @@ namespace dxvk {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void DxvkAdapter::logAdapterInfo() const {
|
||||||
|
VkPhysicalDeviceProperties deviceInfo = this->deviceProperties();
|
||||||
|
|
||||||
|
Logger::info(str::format(deviceInfo.deviceName, ":"));
|
||||||
|
Logger::info(str::format(" Driver: ",
|
||||||
|
VK_VERSION_MAJOR(deviceInfo.driverVersion), ".",
|
||||||
|
VK_VERSION_MINOR(deviceInfo.driverVersion), ".",
|
||||||
|
VK_VERSION_PATCH(deviceInfo.driverVersion)));
|
||||||
|
Logger::info(str::format(" Vulkan: ",
|
||||||
|
VK_VERSION_MAJOR(deviceInfo.apiVersion), ".",
|
||||||
|
VK_VERSION_MINOR(deviceInfo.apiVersion), ".",
|
||||||
|
VK_VERSION_PATCH(deviceInfo.apiVersion)));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void DxvkAdapter::logNameList(const vk::NameList& names) {
|
void DxvkAdapter::logNameList(const vk::NameList& names) {
|
||||||
for (uint32_t i = 0; i < names.count(); i++)
|
for (uint32_t i = 0; i < names.count(); i++)
|
||||||
Logger::info(str::format(" ", names.name(i)));
|
Logger::info(str::format(" ", names.name(i)));
|
||||||
|
@ -147,6 +147,14 @@ namespace dxvk {
|
|||||||
HINSTANCE instance,
|
HINSTANCE instance,
|
||||||
HWND window);
|
HWND window);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Logs DXVK adapter info
|
||||||
|
*
|
||||||
|
* May be useful for bug reports
|
||||||
|
* and general troubleshooting.
|
||||||
|
*/
|
||||||
|
void logAdapterInfo() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
Rc<DxvkInstance> m_instance;
|
Rc<DxvkInstance> m_instance;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user