[D3D12] Display ROV support in the window title
This commit is contained in:
parent
37fe120fe0
commit
17a737a358
|
@ -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) {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue