[App] Rework graphics system creation.

This commit is contained in:
gibbed
2019-08-03 16:42:38 -05:00
parent 890a32bd98
commit 848e2a4088
5 changed files with 53 additions and 33 deletions

View File

@@ -27,7 +27,7 @@ D3D12GraphicsSystem::D3D12GraphicsSystem() {}
D3D12GraphicsSystem::~D3D12GraphicsSystem() {}
bool D3D12GraphicsSystem::IsD3D12APIAvailable() {
bool D3D12GraphicsSystem::IsAvailable() {
return xe::ui::d3d12::D3D12Provider::IsD3D12APIAvailable();
}

View File

@@ -26,7 +26,7 @@ class D3D12GraphicsSystem : public GraphicsSystem {
D3D12GraphicsSystem();
~D3D12GraphicsSystem() override;
static bool IsD3D12APIAvailable();
static bool IsAvailable();
std::wstring name() const override;

View File

@@ -24,6 +24,8 @@ class NullGraphicsSystem : public GraphicsSystem {
NullGraphicsSystem();
~NullGraphicsSystem() override;
static bool IsAvailable() { return true; }
std::wstring name() const override { return L"null"; }
X_STATUS Setup(cpu::Processor* processor, kernel::KernelState* kernel_state,

View File

@@ -24,6 +24,8 @@ class VulkanGraphicsSystem : public GraphicsSystem {
VulkanGraphicsSystem();
~VulkanGraphicsSystem() override;
static bool IsAvailable() { return true; }
std::wstring name() const override { return L"Vulkan"; }
X_STATUS Setup(cpu::Processor* processor, kernel::KernelState* kernel_state,