[D3D12] Display whether ROV is actually used in the title
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user