Remove CompType::Double

* This is a leftover artifact from before we had general extended type support
  and double was the only non-32 bit type we handled. Now we support most type
  formats so doubles are just CompType::Float with 8 byte width
This commit is contained in:
baldurk
2020-07-12 10:52:10 +01:00
parent 6dd09ed2cb
commit 0d026a43d6
23 changed files with 137 additions and 141 deletions
+3 -3
View File
@@ -52,7 +52,7 @@ static void GetKHRUnitDescription(const VkPerformanceCounterUnitKHR khrUnit,
const VkPerformanceCounterStorageKHR khrStorage,
CounterUnit &unit, CompType &type, uint32_t &byteWidth)
{
type = isFloatKhrStorage(khrStorage) ? CompType::Double : CompType::UInt;
type = isFloatKhrStorage(khrStorage) ? CompType::Float : CompType::UInt;
byteWidth = 8;
switch(khrUnit)
@@ -209,7 +209,7 @@ CounterDescription VulkanReplay::DescribeCounter(GPUCounter counterID)
// Special chase for time units.
if(khrCounter.unit == VK_PERFORMANCE_COUNTER_UNIT_NANOSECONDS_KHR)
rdcDesc.resultType = CompType::Double;
rdcDesc.resultType = CompType::Float;
return rdcDesc;
}
@@ -229,7 +229,7 @@ CounterDescription VulkanReplay::DescribeCounter(GPUCounter counterID)
desc.description =
"Time taken for this event on the GPU, as measured by delta between two GPU timestamps.";
desc.resultByteWidth = 8;
desc.resultType = CompType::Double;
desc.resultType = CompType::Float;
desc.unit = CounterUnit::Seconds;
break;
case GPUCounter::InputVerticesRead: