mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[App] Make D3D12 the default GPU backend on Windows again
This commit is contained in:
parent
ee84f4e267
commit
ed61e15fc3
|
|
@ -260,11 +260,10 @@ std::unique_ptr<apu::AudioSystem> EmulatorApp::CreateAudioSystem(
|
||||||
|
|
||||||
std::unique_ptr<gpu::GraphicsSystem> EmulatorApp::CreateGraphicsSystem() {
|
std::unique_ptr<gpu::GraphicsSystem> EmulatorApp::CreateGraphicsSystem() {
|
||||||
Factory<gpu::GraphicsSystem> factory;
|
Factory<gpu::GraphicsSystem> factory;
|
||||||
factory.Add<gpu::vulkan::VulkanGraphicsSystem>("vulkan");
|
|
||||||
// TODO(Triang3l): Move D3D12 back to the top.
|
|
||||||
#if XE_PLATFORM_WIN32
|
#if XE_PLATFORM_WIN32
|
||||||
factory.Add<gpu::d3d12::D3D12GraphicsSystem>("d3d12");
|
factory.Add<gpu::d3d12::D3D12GraphicsSystem>("d3d12");
|
||||||
#endif // XE_PLATFORM_WIN32
|
#endif // XE_PLATFORM_WIN32
|
||||||
|
factory.Add<gpu::vulkan::VulkanGraphicsSystem>("vulkan");
|
||||||
factory.Add<gpu::null::NullGraphicsSystem>("null");
|
factory.Add<gpu::null::NullGraphicsSystem>("null");
|
||||||
return factory.Create(cvars::gpu);
|
return factory.Create(cvars::gpu);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue