Vulkan Pixel History fixes for decoding UINT, SINT data

Use the same helper function DecodePixelData() as D3D12 Pixel History
This commit is contained in:
Jake Turner
2024-03-26 09:19:42 +00:00
parent dbee567300
commit 0eb3c98ee8
+2 -3
View File
@@ -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)