mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Add support for ARM counters
Adding support for ARM counters via a third-party lib. The main target platform is Android.
This commit is contained in:
committed by
Baldur Karlsson
parent
6a2415f334
commit
f1bd727dff
@@ -51,6 +51,7 @@ enum class CounterFamily
|
||||
Intel,
|
||||
NVIDIA,
|
||||
VulkanExtended,
|
||||
ARM,
|
||||
};
|
||||
|
||||
CounterFamily GetCounterFamily(GPUCounter counter)
|
||||
@@ -71,6 +72,10 @@ CounterFamily GetCounterFamily(GPUCounter counter)
|
||||
{
|
||||
return CounterFamily::VulkanExtended;
|
||||
}
|
||||
else if(IsARMCounter(counter))
|
||||
{
|
||||
return CounterFamily::ARM;
|
||||
}
|
||||
|
||||
return CounterFamily::Generic;
|
||||
}
|
||||
@@ -84,6 +89,7 @@ QString ToString(CounterFamily family)
|
||||
case CounterFamily::Intel: return lit("Intel");
|
||||
case CounterFamily::NVIDIA: return lit("NVIDIA");
|
||||
case CounterFamily::VulkanExtended: return lit("Vulkan Extended");
|
||||
case CounterFamily::ARM: return lit("ARM");
|
||||
case CounterFamily::Unknown: return lit("Unknown");
|
||||
}
|
||||
|
||||
|
||||
@@ -177,6 +177,10 @@ QTableWidgetItem *PerformanceCounterViewer::MakeCounterResultItem(const CounterR
|
||||
|
||||
case CounterUnit::Absolute:
|
||||
case CounterUnit::Ratio: break;
|
||||
|
||||
case CounterUnit::Hertz: returnValue += lit(" Hz"); break;
|
||||
case CounterUnit::Volt: returnValue += lit(" V"); break;
|
||||
case CounterUnit::Celsius: returnValue += lit(" °C"); break;
|
||||
}
|
||||
|
||||
return new CustomSortedTableItem(returnValue, SortValue(result, description));
|
||||
|
||||
Reference in New Issue
Block a user