[D3D12] Make something buildable

This commit is contained in:
Triang3l
2018-07-20 15:18:02 +03:00
parent 0ded51f894
commit cd1cf3a857
6 changed files with 311 additions and 23 deletions

View File

@@ -92,6 +92,13 @@ std::unique_ptr<gpu::GraphicsSystem> CreateGraphicsSystem() {
// Create best available.
std::unique_ptr<gpu::GraphicsSystem> best;
#if XE_PLATFORM_WIN32
best = std::unique_ptr<gpu::GraphicsSystem>(
new xe::gpu::d3d12::D3D12GraphicsSystem());
if (best) {
return best;
}
#endif // XE_PLATFORM_WIN32
best = std::unique_ptr<gpu::GraphicsSystem>(
new xe::gpu::vulkan::VulkanGraphicsSystem());
if (best) {