From 0eb3c98ee8919ea95a3edb0c7de7450f2594741c Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Sun, 24 Mar 2024 10:03:29 +0000 Subject: [PATCH] Vulkan Pixel History fixes for decoding UINT, SINT data Use the same helper function DecodePixelData() as D3D12 Pixel History --- renderdoc/driver/vulkan/vk_pixelhistory.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/renderdoc/driver/vulkan/vk_pixelhistory.cpp b/renderdoc/driver/vulkan/vk_pixelhistory.cpp index 298a2ad93..aaae90ea4 100644 --- a/renderdoc/driver/vulkan/vk_pixelhistory.cpp +++ b/renderdoc/driver/vulkan/vk_pixelhistory.cpp @@ -3895,10 +3895,9 @@ void UpdateTestsFailed(const TestsFailedCallback *tfCb, uint32_t eventId, uint32 } } -void FillInColor(ResourceFormat fmt, const PixelHistoryValue &value, ModificationValue &mod) +static void FillInColor(ResourceFormat fmt, const PixelHistoryValue &value, ModificationValue &mod) { - FloatVector v4 = DecodeFormattedComponents(fmt, value.color); - memcpy(mod.col.floatValue.data(), &v4, sizeof(v4)); + DecodePixelData(fmt, value.color, mod.col); } float GetDepthValue(VkFormat depthFormat, const PixelHistoryValue &value)