Add DriverVersion to GPUAdapter for checking on old GPU drivers

This commit is contained in:
Wojtek Figat
2025-03-07 11:39:54 +01:00
parent 301491bcde
commit 0fa88b23c6
9 changed files with 195 additions and 32 deletions

View File

@@ -182,12 +182,12 @@ bool GraphicsService::Init()
return true;
}
GPUDevice::Instance = device;
LOG(Info,
"Graphics Device created! Adapter: \'{0}\', Renderer: {1}, Shader Profile: {2}, Feature Level: {3}",
device->GetAdapter()->GetDescription(),
LOG(Info, "GPU Device created: {}", device->GetAdapter()->GetDescription());
LOG(Info, "Renderer: {}, Shader Profile: {}, Feature Level: {}, Driver: {}",
::ToString(device->GetRendererType()),
::ToString(device->GetShaderProfile()),
::ToString(device->GetFeatureLevel())
::ToString(device->GetFeatureLevel()),
device->GetAdapter()->GetDriverVersion().ToString()
);
// Initialize