From 17a737a358e367191bced1516fe6213dc5032476 Mon Sep 17 00:00:00 2001 From: Triang3l Date: Tue, 16 Oct 2018 21:19:45 +0300 Subject: [PATCH] [D3D12] Display ROV support in the window title --- src/xenia/gpu/d3d12/d3d12_graphics_system.cc | 9 +++++++++ src/xenia/gpu/d3d12/d3d12_graphics_system.h | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/xenia/gpu/d3d12/d3d12_graphics_system.cc b/src/xenia/gpu/d3d12/d3d12_graphics_system.cc index 7a96befa6..962414a0b 100644 --- a/src/xenia/gpu/d3d12/d3d12_graphics_system.cc +++ b/src/xenia/gpu/d3d12/d3d12_graphics_system.cc @@ -27,6 +27,15 @@ D3D12GraphicsSystem::D3D12GraphicsSystem() {} D3D12GraphicsSystem::~D3D12GraphicsSystem() {} +std::wstring D3D12GraphicsSystem::name() const { + auto d3d12_provider = static_cast(provider()); + if (d3d12_provider != nullptr && + d3d12_provider->AreRasterizerOrderedViewsSupported()) { + return L"Direct3D 12 + ROV"; + } + return L"Direct3D 12"; +} + X_STATUS D3D12GraphicsSystem::Setup(cpu::Processor* processor, kernel::KernelState* kernel_state, ui::Window* target_window) { diff --git a/src/xenia/gpu/d3d12/d3d12_graphics_system.h b/src/xenia/gpu/d3d12/d3d12_graphics_system.h index 19f268305..9bba14b6c 100644 --- a/src/xenia/gpu/d3d12/d3d12_graphics_system.h +++ b/src/xenia/gpu/d3d12/d3d12_graphics_system.h @@ -25,7 +25,7 @@ class D3D12GraphicsSystem : public GraphicsSystem { D3D12GraphicsSystem(); ~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, ui::Window* target_window) override;