mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-15 11:06:54 +00:00
Vulkan Pixel History fixes for decoding UINT, SINT data
Use the same helper function DecodePixelData() as D3D12 Pixel History
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user