make DX11 the default on windows

This commit is contained in:
Nikhil Narayana 2022-07-30 13:37:11 -07:00
commit e09fca3030

View file

@ -217,14 +217,16 @@ const std::vector<std::unique_ptr<VideoBackendBase>>& VideoBackendBase::GetAvail
static auto s_available_backends = [] {
std::vector<std::unique_ptr<VideoBackendBase>> backends;
// OGL > D3D11 > D3D12 > Vulkan > SW > Null
#ifdef HAS_OPENGL
backends.push_back(std::make_unique<OGL::VideoBackend>());
#endif
// Mainline prefers OGL > D3D11 > D3D12 > Vulkan > SW > Null
// Slippi will instead prefer D3D11 > D3D12 > OGL > Vulkan > SW > Null
// SLIPPITODO: Check what works best in practice for each OS
#ifdef _WIN32
backends.push_back(std::make_unique<DX11::VideoBackend>());
backends.push_back(std::make_unique<DX12::VideoBackend>());
#endif
#ifdef HAS_OPENGL
backends.push_back(std::make_unique<OGL::VideoBackend>());
#endif
#ifdef HAS_VULKAN
backends.push_back(std::make_unique<Vulkan::VideoBackend>());
#endif