From 3130d4b38ed77d8e9920d2ae1e1a451538db1467 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Sat, 20 Feb 2016 21:02:28 -0600 Subject: [PATCH] Add the vulkan backend as a choice in xenia-app --- src/xenia/app/premake5.lua | 1 + src/xenia/app/xenia_main.cc | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/xenia/app/premake5.lua b/src/xenia/app/premake5.lua index 3cfef9a82..e6b98a3ec 100644 --- a/src/xenia/app/premake5.lua +++ b/src/xenia/app/premake5.lua @@ -19,6 +19,7 @@ project("xenia-app") "xenia-debug-ui", "xenia-gpu", "xenia-gpu-gl4", + "xenia-gpu-vulkan", "xenia-hid-nop", "xenia-kernel", "xenia-ui", diff --git a/src/xenia/app/xenia_main.cc b/src/xenia/app/xenia_main.cc index 0c95bc562..bc9b662c5 100644 --- a/src/xenia/app/xenia_main.cc +++ b/src/xenia/app/xenia_main.cc @@ -25,6 +25,7 @@ // Available graphics systems: #include "xenia/gpu/gl4/gl4_graphics_system.h" +#include "xenia/gpu/vulkan/vulkan_graphics_system.h" // Available input drivers: #include "xenia/hid/nop/nop_hid.h" @@ -69,6 +70,9 @@ std::unique_ptr CreateGraphicsSystem() { if (FLAGS_gpu.compare("gl4") == 0) { return std::unique_ptr( new xe::gpu::gl4::GL4GraphicsSystem()); + } else if (FLAGS_gpu.compare("vulkan") == 0) { + return std::unique_ptr( + new xe::gpu::vulkan::VulkanGraphicsSystem()); } else { // Create best available. std::unique_ptr best;