[D3D12] Display ROV support in the window title

This commit is contained in:
Triang3l 2018-10-16 21:19:45 +03:00
parent 37fe120fe0
commit 17a737a358
2 changed files with 10 additions and 1 deletions

View File

@ -27,6 +27,15 @@ D3D12GraphicsSystem::D3D12GraphicsSystem() {}
D3D12GraphicsSystem::~D3D12GraphicsSystem() {} D3D12GraphicsSystem::~D3D12GraphicsSystem() {}
std::wstring D3D12GraphicsSystem::name() const {
auto d3d12_provider = static_cast<xe::ui::d3d12::D3D12Provider*>(provider());
if (d3d12_provider != nullptr &&
d3d12_provider->AreRasterizerOrderedViewsSupported()) {
return L"Direct3D 12 + ROV";
}
return L"Direct3D 12";
}
X_STATUS D3D12GraphicsSystem::Setup(cpu::Processor* processor, X_STATUS D3D12GraphicsSystem::Setup(cpu::Processor* processor,
kernel::KernelState* kernel_state, kernel::KernelState* kernel_state,
ui::Window* target_window) { ui::Window* target_window) {

View File

@ -25,7 +25,7 @@ class D3D12GraphicsSystem : public GraphicsSystem {
D3D12GraphicsSystem(); D3D12GraphicsSystem();
~D3D12GraphicsSystem() override; ~D3D12GraphicsSystem() override;
std::wstring name() const override { return L"Direct3D 12"; } std::wstring name() const override;
X_STATUS Setup(cpu::Processor* processor, kernel::KernelState* kernel_state, X_STATUS Setup(cpu::Processor* processor, kernel::KernelState* kernel_state,
ui::Window* target_window) override; ui::Window* target_window) override;