[D3D12] Copy the null graphics system as D3D12

This commit is contained in:
Triang3l
2018-07-18 12:02:00 +03:00
parent c2b2a9f376
commit fde3c1f0e8
5 changed files with 203 additions and 0 deletions

View File

@@ -29,6 +29,9 @@
// Available graphics systems:
#include "xenia/gpu/null/null_graphics_system.h"
#include "xenia/gpu/vulkan/vulkan_graphics_system.h"
#if XE_PLATFORM_WIN32
#include "xenia/gpu/d3d12/d3d12_graphics_system.h"
#endif // XE_PLATFORM_WIN32
// Available input drivers:
#include "xenia/hid/nop/nop_hid.h"
@@ -77,6 +80,11 @@ std::unique_ptr<gpu::GraphicsSystem> CreateGraphicsSystem() {
if (FLAGS_gpu.compare("vulkan") == 0) {
return std::unique_ptr<gpu::GraphicsSystem>(
new xe::gpu::vulkan::VulkanGraphicsSystem());
#if XE_PLATFORM_WIN32
} else if (FLAGS_gpu.compare("d3d12") == 0) {
return std::unique_ptr<gpu::GraphicsSystem>(
new xe::gpu::d3d12::D3D12GraphicsSystem());
#endif // XE_PLATFORM_WIN32
} else if (FLAGS_gpu.compare("null") == 0) {
return std::unique_ptr<gpu::GraphicsSystem>(
new xe::gpu::null::NullGraphicsSystem());