[App] Only start D3D12 if DLL exists
This commit is contained in:
@@ -27,6 +27,10 @@ D3D12GraphicsSystem::D3D12GraphicsSystem() {}
|
||||
|
||||
D3D12GraphicsSystem::~D3D12GraphicsSystem() {}
|
||||
|
||||
bool D3D12GraphicsSystem::IsD3D12APIAvailable() {
|
||||
return xe::ui::d3d12::D3D12Provider::IsD3D12APIAvailable();
|
||||
}
|
||||
|
||||
std::wstring D3D12GraphicsSystem::name() const {
|
||||
auto d3d12_command_processor =
|
||||
static_cast<D3D12CommandProcessor*>(command_processor());
|
||||
|
||||
@@ -26,6 +26,8 @@ class D3D12GraphicsSystem : public GraphicsSystem {
|
||||
D3D12GraphicsSystem();
|
||||
~D3D12GraphicsSystem() override;
|
||||
|
||||
static bool IsD3D12APIAvailable();
|
||||
|
||||
std::wstring name() const override;
|
||||
|
||||
X_STATUS Setup(cpu::Processor* processor, kernel::KernelState* kernel_state,
|
||||
|
||||
Reference in New Issue
Block a user