[App] Rework graphics system creation.
This commit is contained in:
@@ -27,7 +27,7 @@ D3D12GraphicsSystem::D3D12GraphicsSystem() {}
|
||||
|
||||
D3D12GraphicsSystem::~D3D12GraphicsSystem() {}
|
||||
|
||||
bool D3D12GraphicsSystem::IsD3D12APIAvailable() {
|
||||
bool D3D12GraphicsSystem::IsAvailable() {
|
||||
return xe::ui::d3d12::D3D12Provider::IsD3D12APIAvailable();
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ class D3D12GraphicsSystem : public GraphicsSystem {
|
||||
D3D12GraphicsSystem();
|
||||
~D3D12GraphicsSystem() override;
|
||||
|
||||
static bool IsD3D12APIAvailable();
|
||||
static bool IsAvailable();
|
||||
|
||||
std::wstring name() const override;
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user