[D3D12] Display whether ROV is actually used in the title

This commit is contained in:
Triang3l
2018-10-17 17:53:37 +03:00
parent f5a90faeab
commit 1860bc6a59
5 changed files with 33 additions and 35 deletions

View File

@@ -28,10 +28,11 @@ 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";
auto d3d12_command_processor =
static_cast<D3D12CommandProcessor*>(command_processor());
if (d3d12_command_processor != nullptr) {
return d3d12_command_processor->IsROVUsedForEDRAM() ? L"Direct3D 12 - ROV"
: L"Direct3D 12 - RT";
}
return L"Direct3D 12";
}