mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 23:46:41 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user