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

@@ -198,17 +198,14 @@ GPUDevice* GPUDeviceDX12::Create()
}
}
}
// Validate adapter
if (!selectedAdapter.IsValid())
{
LOG(Error, "Failed to choose valid DirectX adapter!");
return nullptr;
}
// Check if selected adapter does not support DirectX 12
if (!selectedAdapter.IsSupportingDX12())
if (selectedAdapter.MaxFeatureLevel < D3D_FEATURE_LEVEL_12_0)
{
LOG(Error, "Failed to choose valid DirectX adapter!");
return nullptr;
}
#endif